We use mobx stores for state management in a nextjs project. We provide actions and data through global context provider to plasmic.
Mobx has a way to lazy load (or fetch) variables, which is only loaded when observed from a component.
Issue is this works in non plasmic pages, however, plasmic pages always tends to fetch these variable, even on an unrelated page.
I guess this is because plasmic pages have all contexts active on every plasmic page. We recently had a way to check page path to only start fetching if an allowed path is met. Obviously, this is not the most ideal way.
Is there a way to lazy load plasmic context variables?