FormidableLabs/react-ssr-prepass

[Question] Are portals supported?

sgb-io opened this issue · 2 comments

Should this library support rendering content inside portals?

I can see that there is a test that hints maybe not. Is this by design, or not possible, or some limitation?

Sorry for the late reply! Portals aren’t supported. Like SSR in react-dom itself it’s left out, so if you have multiple sub trees that you’re later stitching together with portals then you’ll have to run prepaid on each sub tree individually :)

If I’m missing something crucial here however, please let me know! I don’t use portals very frequently so maybe I’m just not familiar with a nuance of them and SSR.

Closing as intentions clarified