Why do we need ToastProvider when we already have global Toast #105
Answered
by
arnnis
yongqianvip
asked this question in
Q&A
-
We can call toast outside React components with Is there anthing that global Toast can not do but |
Beta Was this translation helpful? Give feedback.
Answered by
arnnis
Oct 21, 2021
Replies: 1 comment
-
ToastProvider is only meant to be an alternative for users who prefer hooks. It also has better typescript. You can only use the global toast if you prefer, there is no difference |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yongqianvip
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ToastProvider is only meant to be an alternative for users who prefer hooks. It also has better typescript.
You can only use the global toast if you prefer, there is no difference