Why does preact stop rerender cascades when signal is present? #3877
Unanswered
MicahZoltu
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the following code, if you click the button you will see all 4 components rerender. However, if you uncomment the reference to the static signal
apple
inChild
, clicking the button will now only rerenderGrandParent
andParent
.Why is preact rendering
Parent
,Child
, andGrandChild
unnecessarily?Why does adding a reference to a static signal change this behavior?
Should I be adding references to static signals to all of my components to prevent unnecessary rerender cascades?
Beta Was this translation helpful? Give feedback.
All reactions