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
My use case is a vary big UserPreference object that's provided globally, and a hook that accept a key and returns value, and setValue.
a simplified version of that looks like this (in reality user preferences comes from the server)
When setting value of a preference, I want to avoid rendering components that use useUserPreference if the value hasn't changed.
I tried using all three packages mentioned above, but rendering still occurs for every component that uses that hook...
any thoughts?
The text was updated successfully, but these errors were encountered:
My use case is a vary big UserPreference object that's provided globally, and a hook that accept a key and returns
value
, andsetValue
.a simplified version of that looks like this (in reality user preferences comes from the server)
When setting value of a preference, I want to avoid rendering components that use
useUserPreference
if the value hasn't changed.I tried using all three packages mentioned above, but rendering still occurs for every component that uses that hook...
any thoughts?
The text was updated successfully, but these errors were encountered: