How to use Next.js preview mode to set dynamic plasmicId and plasmicToken?

Hi there :wave: I’m trying to use Next preview mode to set dynamic plasmicId and plasmicToken coming from previewData. This mode initializes new instances of PLASMIC loader in getStaticProps, so during development I often get PLASMIC: We detected that you created a new PlasmicLoader with different configurations. You may need to restart your dev server.

In development mode plasmic studio updates are no longer detected. Cached fetch data is written in .next/.plasmic folder, but never revalidated. Is there something I’m missing I could do for this to work?

Thanks a lot