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
useConditionalEffect
I'd expect it would behave asuseEffect
that has condition inside callback:But instead the callback called on next re-render even if
dep1
anddep2
are unchanged.Question: Is this behavior by design?
Beta Was this translation helpful? Give feedback.
All reactions