setContext vs Store
5/11/2022, 11:58:44 PM
by Leo Voon
Use get/setContext when you need per-instance data that is available to all descendants. For example, passing from a particular Parent to Grand grand child. Contexts are not reactive but you can use a store as the context value which will make it reactive.
You are also not supposed to reset the context value with setContext after you’ve already set it once.
Use Store when you need reactive data that is global. That can be used in different component instance.