You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
creates a new instance on each render, this is voiding all useCallbacks and useMemos for which the const toaster = useToaster(); is a dependency.
In my case it's causing a cascade effect which makes the view completely unusable.
The returned object should be wrapped in a useMemo
Expected Behavior
No response
To Reproduce
No response
The text was updated successfully, but these errors were encountered:
What version of rsuite are you using?
5.37.0
What version of React are you using?
18.2.0
What version of TypeScript are you using (if any)?
No response
What browser are you using?
Chrome
Describe the Bug
The
useToaster
hooks should keep same reference across re-renders, the code herecreates a new instance on each render, this is voiding all
useCallback
s anduseMemo
s for which theconst toaster = useToaster();
is a dependency.In my case it's causing a cascade effect which makes the view completely unusable.
The returned object should be wrapped in a useMemo
Expected Behavior
No response
To Reproduce
No response
The text was updated successfully, but these errors were encountered: