S
SolidJS2y ago
Metru

Question about Contexts

In react a common pitfall with contexts is causing unnecessary re-renders to everything subscribed to any piece of the context state, including those just using the methods. (unless you carefully designed the context) Is it safe to assume(/correct to say) that solidjs' contexts are inheritly safer and easier to use since components don't rerender like react and we then only need to worry about using signals/stores adequately?
1 Reply
thetarnav
thetarnav2y ago
in solid context is just a way to pass values using the ownership (component) tree. how you decide to pass stuff around doesn't affect rendering at all
Want results from more Discord servers?
Add your server