From 633cb6f0b13a0098a7415c9bf6bbfa2e9ece9c39 Mon Sep 17 00:00:00 2001 From: Timo Lins Date: Tue, 2 Mar 2021 20:17:49 +0100 Subject: [PATCH] Increase default duration from loading toasts to Infinity Fixes #45 --- site/pages/docs/toast.mdx | 2 +- src/core/store.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site/pages/docs/toast.mdx b/site/pages/docs/toast.mdx index 6536bad..60bf039 100644 --- a/site/pages/docs/toast.mdx +++ b/site/pages/docs/toast.mdx @@ -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 diff --git a/src/core/store.ts b/src/core/store.ts index 1639fdd..515b169 100644 --- a/src/core/store.ts +++ b/src/core/store.ts @@ -131,7 +131,7 @@ const defaultTimeouts: { blank: 4000, error: 4000, success: 2000, - loading: 30000, + loading: Infinity, }; export const useStore = (toastOptions: DefaultToastOptions = {}): State => {