Skip to content

Instantly share code, notes, and snippets.

@emanueleDiVizio
Created June 9, 2020 14:54
Show Gist options
  • Save emanueleDiVizio/c1730a0c8352b336b5b12533ef2881f1 to your computer and use it in GitHub Desktop.
Save emanueleDiVizio/c1730a0c8352b336b5b12533ef2881f1 to your computer and use it in GitHub Desktop.
type ActionToBeQueued = {
type: string,
payload?: any,
meta: {
retry?: boolean, // By passing true, your action will be enqueued on offline mode
dismiss?: Array<string> // Array of actions which, once dispatched, will trigger a dismissal from the queue
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment