SolidJSS
SolidJSβ€’3y agoβ€’
3 replies
binajmen

How to choose between Store and Context?

I've gathered that a store can reside in its own file and be imported in multiple locations, acting as a shared state. Given this, why would I opt for a context when a store seems capable of handling the task?

Whether it's for theming or authentication status, a store seems apt. Is there an advantage to using a context, or some trade-offs or crucial factors I might be overlooking?
Was this page helpful?