useConditionalEffect callback is called even if conditions unchanged #156
nikolay-borzov started this conversation in General
Replies: 1 comment 2 replies
-
| @nikolay-borzov the design is descccribed in docs=)
So by default, whenever condition |
Beta Was this translation helpful? Give feedback.
2 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.
-
Looking at
useConditionalEffectI'd expect it would behave asuseEffectthat has condition inside callback:But instead the callback called on next re-render even if
dep1anddep2are unchanged.Question: Is this behavior by design?
Beta Was this translation helpful? Give feedback.
All reactions