Blankeos
Explore posts from serversIs there a way to hydrate signals on the server?
I have an AuthContext. I just specifically want to hydrate my
user
signal in some routes. Is there a way to do this?
As far as I know, even in React I can't do this unless I bring in a separate library. Jotai actually does this using useHydrateAtoms
. I'm wondering if there's something similar in SolidJS that I can use? (Not Solid Start specific).
https://jotai.org/docs/utilities/ssr
2 replies
<Show /> vs React-style conditional rendering.
I'm trying to implement a long conditional rendeirng statement in React into Show. It ends up pretty buggy. I just copied the React conditional statement and it seems to just work no problem.
Are there any disadvantages to this?
By the way this solid port project is @wobsoriano 's port of Sonner.
I'm just fixing bugs haha
7 replies
Filter and <For each />
Just a question, is there anything wrong with using
.filter
with For each={} />
Like:
I'm wondering if this causes issues when toasts() is an array that sort of reorders.
Like if toasts()
were a queue that removes the first element every few seconds, will SolidJS know to reuse the 2nd element in place of the removed 1st element?
Visually:
[1st Element, 2nd Element, 3rd Element]
⬇️
[2nd Element, 3rd Element]
------
Another is if 2nd Element just changes something within it like:
[2nd Element.loading, 3rd Element]
⬇️
[2nd Element.success, 3rd Element]
In this case, will SolidJS unmount the 2nd element, and then remount it? (when filter is involved)26 replies
Does the Solid compiler convert JSX to template variables? Know anything about this issue here?
Hi y'all! Does the Solid compiler have anything to do with converting JSX to a template variable in JS?
var _tmpl$ = template(...)
?
This library I'm using seems to be facing an issue where when it's deployed to npm, it loses the quotes in the template. For instance:
<div class="sonner-loading"/>
becomes div class=sonner-loading/>
But locally, it's actually fine after doing pnpm run build
Most of my investigation was diffing, but I honestly can't pinpoint what's causing this issue:
https://github.com/wobsoriano/solid-sonner/issues/144 replies