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?
ray
4
yes thank you very much i’ll dig in here
beamer
6
Did you ever figure out a clear answer to this? I’m poking around the same problem