Why is PlasmicRootProvider needed?

Hi, we’re using the codegen in our React project but still receive this warning:
Plasmic: To ensure your components work correctly with server-side rendering, please use PlasmicRootProvider at the root of your application. See https://docs.plasmic.app/learn/ssr

Why would I need the provider when using codegen? Is there some configuration I’m missing?

Hi! Will fix the broken link :sweat_smile:

If you are ever doing server-side rendering (using codegen or not), it is important for random IDs generated on the server to match what’s generated on the client so that hydration works properly. This is especially the case if you’re using some of our interactive components (like Select). So we recommend wrapping your app in <PlasmicRootProvider /> to ensure stable IDs.

Ok, that makes sense. Thanks for clarifying.