Replies: 1 comment
-
This issue has been fixed, would be available in next release. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm actually creating a custom theme provider that creates themes based on the selection. The style function is:
This is called in the main component like this:
The problem is that the useMemo executes in every single redraw of the component by unrelated reasons (ex. some state changed).
The weird thing is if I use theme.colors as the dependency this works as intended:
Is there any reason for this? Shouldn't theme be always the same object unless I change the theme? What's the reason of the object change?
Beta Was this translation helpful? Give feedback.
All reactions