S
SolidJS16mo ago
bierdav

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 package
3 Replies
foolswisdom
foolswisdom16mo ago
obviously it doesn't work
Not 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"?
bierdav
bierdavOP16mo ago
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?
bierdav
bierdavOP16mo ago
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 ...
Want results from more Discord servers?
Add your server