high1
high1
SSolidJS
Created by Дикий on 2/20/2024 in #support
how to make two-way data transfer through components?
As I said before, you could send signal setters to the child. That's that.
20 replies
SSolidJS
Created by Дикий on 2/20/2024 in #support
how to make two-way data transfer through components?
and that's either a setter, or a shared store, context, even a function wrapper around something that's reactive
20 replies
SSolidJS
Created by Дикий on 2/20/2024 in #support
how to make two-way data transfer through components?
but the easiest way to have a change in child component visible in parent is to forward something that is already reactive
20 replies
SSolidJS
Created by Дикий on 2/20/2024 in #support
how to make two-way data transfer through components?
they can
20 replies
SSolidJS
Created by Дикий on 2/20/2024 in #support
how to make two-way data transfer through components?
If you don't want context - or stores
20 replies
SSolidJS
Created by Дикий on 2/20/2024 in #support
how to make two-way data transfer through components?
But those props could be signals, i.e. you could send signal setters to the child
20 replies
SSolidJS
Created by Дикий on 2/20/2024 in #support
how to make two-way data transfer through components?
How do you mean through props? Props are sent from the parent to the child component
20 replies
SSolidJS
Created by febri on 10/20/2023 in #support
Load more button
Keeping the reference while updating the array is the key.
11 replies
SSolidJS
Created by anhvu0911 on 10/19/2023 in #support
Loading CSS issue (FOUC) on optional parameter
What are you using for CSS?
9 replies
SSolidJS
Created by anhvu0911 on 10/19/2023 in #support
Loading CSS issue (FOUC) on optional parameter
My SolidStart knowledge is not that great, but I don't think it has an integrated css solution
9 replies
SSolidJS
Created by febri on 10/20/2023 in #support
Load more button
Nesting arrays sounds unneeded, why would you do that?
11 replies
SSolidJS
Created by febri on 10/20/2023 in #support
Load more button
<For /> uses reference equality, so just create a new array keeping references to the existing objects unchanged, and add new ones.
11 replies
SSolidJS
Created by iNdra on 10/19/2023 in #support
Any advantages by tanstack libraries for solidjs users?
You can actually benefit a lot from them, IMHO.
10 replies
SSolidJS
Created by aryzing on 10/18/2023 in #support
ESLint error: ref is never reassigned, use const
You could also use a signal
const [form, setForm] = createSignal<HTMLFormElement>()
const [form, setForm] = createSignal<HTMLFormElement>()
and then use setter in the markup
return <form ref={setForm} ...
return <form ref={setForm} ...
6 replies
SSolidJS
Created by Dog on 10/11/2023 in #support
Anyone using solid-social with solid-markdown?
Great. I'll update solid-jsx and solid-social next week, got some minor things to add. Most of the things here you could do without solid-jsx, as solid can now also be a jsxImportSource for @mdx-js, but there's no MDXProvider and useMDXComponents
69 replies
SSolidJS
Created by Dog on 10/11/2023 in #support
Anyone using solid-social with solid-markdown?
If you set up things correctly
69 replies