Can you use PlasmicLoader on pages with code components?

Question: after using code components to render in plasmic editor, can you consume those pages with PlasmicComponent/Loader? Or does it only work with codegen?

it should work for legacy API (<PlasmicLoader/>) without any extra configuration

For the current headless api (PlasmicComponent), it’s also possible, but for now we have to do it via component substitution: https://docs.plasmic.app/learn/code-component-substitution/

we’re working to improve this, and should be releasing an update soon so that we don’t need to “register” the code components twice

thanks. that worked. i had tried using plasmic-host’s registerComponent in the app. But PLASMIC.registerComponent did the trick.