ryanseddon / react-frame-component

Render your React app to an iFrame
http://ryanseddon.github.io/react-frame-component/
MIT License
1.75k stars 156 forks source link

initialContent / event leaking into Nextjs SSR params #247

Closed gordoneliel closed 1 year ago

gordoneliel commented 1 year ago

The problem

I have a page using the nextjs app router, using react-frame-component to render an mjml preview (client component, no ssr). Im setting the raw html preview from converting mjml to html into the initial content of the frame, but for some reason, when react renders the page with the iframe component, I get passed into the page an id param that is part of the payload of the iframe. That messes up data fetching as im relying on passing an id from another page as a url param