Skip to content

Commit

Permalink
Increase default duration from loading toasts to Infinity
Browse files Browse the repository at this point in the history
Fixes #45
  • Loading branch information
timolins committed Mar 2, 2021
1 parent 1609cc6 commit 633cb6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion site/pages/docs/toast.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Every type has their own duration. You can overwrite them `duration` with the to
| `blank` | 4000 |
| `error` | 4000 |
| `success` | 2000 |
| `loading` | 30000 |
| `loading` | Infinity |

### Dismiss toast programmatically

Expand Down
2 changes: 1 addition & 1 deletion src/core/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const defaultTimeouts: {
blank: 4000,
error: 4000,
success: 2000,
loading: 30000,
loading: Infinity,
};

export const useStore = (toastOptions: DefaultToastOptions = {}): State => {
Expand Down

0 comments on commit 633cb6f

Please sign in to comment.