S
SolidJS10mo 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
foolswisdom10mo 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
bierdav10mo 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
bierdav10mo 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
More Posts
Recommended way to track the setter of a signal?Currently, my solution involves wrapping the setter with a function. Playground: https://playground.Is it possible to pass paramters a function wrapped by a createEffect/createMemo?,I have a certain function in my component which I have noticed runs multiple times since I am referIs it possible to implement LiveViewJS type functionality using SolidJS + SSR?Specifically, simple example would be : an Observable (for example from rxjs or S.js ) keeps updatinNeed to pass a function as a dependency to the solid js web component.Hello I have made a web component with solid and I need to pass a function as a dependency to it. I Adding components that use context to the DOM after mountI have a component (ShelfScene) that returns a mapped list of items (Shelf). The ShelfScene componenFetching data with authorisation tokenI’m using auth.js with cognito and my backend requires the authorisation token to be present with evFor loop in route breaks when form in another component is submittedI have this <For> loop in a route. Works fine.... UNTIL..... There is another component I can useinput elements become empty upon hydrationIf I load a page developed using solid start on a slow connection, and enter some text in an input eMissing Http method returns 200 status code on api routeI am trying to generate API routes. In the docs I read that 405 is returned for non existing routes Why does (return new Response(({'error' : ""}), {status : code})) not work```js return new Response(({'error' : "No ID provided"}), {status : 500}) ```