Is there some equivalent to <Portal/> that is also compatible with ssr?
I want to make a persistent modal dialog, and for that i need the
<Portal/>
component from solid-js/web
, but obviously it doesn't work, because it's in the solid-js/web
package3 Replies
obviously it doesn't workNot so obvious, it works just fine Unless the problem is that you want the portal to show up in the SSR'ed HTML? Oh, is that maybe (related to) what you meant by "persistent"?
Yes that's exactly what I need. We need to support keep mounted, because further works on the select component require this, so it's required for the portal to work in ssr mode. Is this currently just a missing feature of solid start? Is this a technical limitation? Is there a workaround?
I've now also created a feature request on github: https://github.com/solidjs/solid-start/issues/1043
GitHub
Add support for Portal in SSR · Issue #1043 · solidjs/solid-start
Duplicates I have searched the existing issues Latest version I have tested the latest version Summary 💡 I want to use the Portal component in SSR, and I need it to be included in the SSR rendered ...