mdynnl
mdynnl
SSolidJS
Created by swappea on 10/29/2024 in #support
Should I use reconcile everytime I use produce?
the answer to the question in the title is No they don't work together
5 replies
SSolidJS
Created by swappea on 10/29/2024 in #support
Should I use reconcile everytime I use produce?
I can use produce utility to work with draft state and this then returns the new immutable state
produce gives you a proxy to allow you to write imperative mutations and combining with setStore fine-grainly updates the store so, while the posted code using reconcile works fine and sometimes necessary especially when working with api responses you can use produce instead so it works like dev's last point
5 replies
SSolidJS
Created by webstrand on 10/28/2024 in #support
<Show> not tracking signals
maybe an example of what you're trying to do would help picture this. as the original playground was just counters.
28 replies
SSolidJS
Created by webstrand on 10/28/2024 in #support
<Show> not tracking signals
28 replies
SSolidJS
Created by webstrand on 10/28/2024 in #support
<Show> not tracking signals
because that's on Show to decide
28 replies
SSolidJS
Created by webstrand on 10/28/2024 in #support
<Show> not tracking signals
the fact that you are passing _ => count() proves that point
28 replies
SSolidJS
Created by webstrand on 10/28/2024 in #support
<Show> not tracking signals
I was only mentioning it to add to the first point
28 replies
SSolidJS
Created by webstrand on 10/28/2024 in #support
<Show> not tracking signals
like here
<Show keyed ....>
{count => count.amount}
</Show>
<Show keyed ....>
{count => count.amount}
</Show>
if you pass keyed to Show the callback will receive the value passed to when prop as is and re-run the callback
28 replies
SSolidJS
Created by webstrand on 10/28/2024 in #support
<Show> not tracking signals
since the callback is just a children prop that Show takes, it can decide whatever it likes.
28 replies
SSolidJS
Created by webstrand on 10/27/2024 in #support
solidjs/html use: attributes
solid doesn't actually care if you pass some prop multiple times so multiple ref also works
10 replies
SSolidJS
Created by webstrand on 10/27/2024 in #support
solidjs/html use: attributes
yeah, something like this could help a little bit
html`<div ref=${use(fn, [fn, () => 4])} />`
html`<div ref=${use(fn, [fn, () => 4])} />`
10 replies
SSolidJS
Created by webstrand on 10/27/2024 in #support
solidjs/html use: attributes
it's essentially the same thing
10 replies
SSolidJS
Created by webstrand on 10/27/2024 in #support
solidjs/html use: attributes
i think it's a bug, before this is solved you could workaround to ref
10 replies
SSolidJS
Created by JLarky on 10/25/2024 in #support
Uncaught Error: Failed attempt to create new DOM elements during hydration. Check that the libraries
This is likely intentional and solid pipeline should be integrated to whatever setup because there'd be a couple of output formats if you combine it with js output formats i.e 2 (cjs, esm) * 2 (ssr, dom) * 2 (hydratable, normal) so instead we just simply ship the jsx using solid export condition and let the solid pipeline handle it
32 replies
SSolidJS
Created by JLarky on 10/25/2024 in #support
Uncaught Error: Failed attempt to create new DOM elements during hydration. Check that the libraries
Both ssr and dom require hydratable
32 replies
SSolidJS
Created by JLarky on 10/25/2024 in #support
Uncaught Error: Failed attempt to create new DOM elements during hydration. Check that the libraries
32 replies
SSolidJS
Created by Galaktikos on 10/23/2024 in #support
Setting custom 'children' type
2 replies
SSolidJS
Created by Eve on 10/22/2024 in #support
Why does this loop infinitely
The two should be functionally identical
no expressions in jsx are compiled to be wrapped with effect whereas the function passed to For as children is executed with untrack (same as a component's body)
6 replies
SSolidJS
Created by RATIU5 on 10/15/2024 in #support
How do I run an effect every change except initialization?
this should work if not try reproducing on the playground
5 replies
SSolidJS
Created by RATIU5 on 10/12/2024 in #support
Solid.js does not render children in a `<For>` loop correctly
not implying that this can't be fixed
28 replies