Anyone had issues with context using PlasmicComponent

Has anybody had issues with context using PlasmicComponent?

<ContextProvider>
  <PlasmicComponent component="Modal" componentProps={{ children: <Form /> }} />
</ContextProvider>

From what I can tell <Form />, which maintains it’s own state, gets it’s state wiped whenever it updates <ContextProvider>

I read somewhere that setting children: <Form /> will create a new form on every render. I tried a few different useMemo setups with no avail

does anybody have a similar setup that could share how it was put together?

We use contexts quite a bit in the Supabase demo https://github.com/plasmicapp/plasmic/tree/master/examples/supabase-demo

Does this help?

yes thank you very much i’ll dig in here