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
I'm noticing useState isn't playing nice with hot reload, as it re-applies the initial value on hot reload, but useMemoized behaves fine, not re-applying the initial state when hot reloading.
Not sure if this is intended, let me know if this is not considered a bug.
I was doing the code below with useState. After noticing this behaviour, i went with useMemoized.
I'm noticing
useState
isn't playing nice with hot reload, as it re-applies the initial value on hot reload, butuseMemoized
behaves fine, not re-applying the initial state when hot reloading.Not sure if this is intended, let me know if this is not considered a bug.
I was doing the code below with
useState
. After noticing this behaviour, i went withuseMemoized
.flutter_hooks: 0.20.5
hooks_riverpod: 2.6.1
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: