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
I don't think this is part of #2438 but would be another useful rule. Basically, when having diverging control flow in an effect or memo, a dependency may not be tracked, which could (partially) break reactivity. If an effect handler has some conditionals, it should either hoist the signal accesses to the top, or use on (https://docs.solidjs.com/reference/reactive-utilities/on-util#on).
Description
I don't think this is part of #2438 but would be another useful rule. Basically, when having diverging control flow in an effect or memo, a dependency may not be tracked, which could (partially) break reactivity. If an effect handler has some conditionals, it should either hoist the signal accesses to the top, or use
on
(https://docs.solidjs.com/reference/reactive-utilities/on-util#on).More info: https://docs.solidjs.com/advanced-concepts/fine-grained-reactivity#managing-lifecycles-in-a-reactive-system
The text was updated successfully, but these errors were encountered: