mrVinicius
mrVinicius
SSolidJS
Created by James on 10/30/2024 in #support
solid-motionone/@solid-primitives/transition-group - onMount/createEffects called before add to DOM
perhaps u could use a ref signal and check if its no longer undefined, meaning it has rendered on the dom. https://docs.solidjs.com/concepts/refs
2 replies
SSolidJS
Created by mrVinicius on 10/24/2024 in #support
Dynamic Component & Props
thanks
11 replies
SSolidJS
Created by mrVinicius on 10/24/2024 in #support
Dynamic Component & Props
it worked!
11 replies
SSolidJS
Created by mrVinicius on 10/24/2024 in #support
Dynamic Component & Props
oh, what a silly mistake
11 replies
SSolidJS
Created by mrVinicius on 10/24/2024 in #support
Dynamic Component & Props
By the button component
11 replies
SSolidJS
Created by mrVinicius on 10/16/2024 in #support
Store with const obj values passed to it does not update.
Oh, that make sense, thanks for the input!
11 replies
SSolidJS
Created by mrVinicius on 10/16/2024 in #support
Store with const obj values passed to it does not update.
Oh thanks, didn't thought of this approach, worked like a charm
11 replies
SSolidJS
Created by mrVinicius on 10/16/2024 in #support
Store with const obj values passed to it does not update.
how?
setViewable(...initialViewable ) // is invalid
setViewable(() => ({...initialViewable })) // doesnt do anything
setViewable((prev) => ({...prev, ...initialViewable })) // doesnt do anything
setViewable(...initialViewable ) // is invalid
setViewable(() => ({...initialViewable })) // doesnt do anything
setViewable((prev) => ({...prev, ...initialViewable })) // doesnt do anything
11 replies
SSolidJS
Created by mrVinicius on 10/16/2024 in #support
Store with const obj values passed to it does not update.
I feel its javascript memory layout or solid compiler to blame
11 replies
SSolidJS
Created by mrVinicius on 10/16/2024 in #support
Store with const obj values passed to it does not update.
This problem only seem to occur with the initialViewable, a new const obj does work
11 replies
SSolidJS
Created by mrVinicius on 10/10/2024 in #support
Stores & CreateResource
Hmm, that seems to add way too much complexity into my problem, just gonna stick with regular signals for this use case.
10 replies
SSolidJS
Created by mrVinicius on 10/10/2024 in #support
Stores & CreateResource
No description
10 replies
SSolidJS
Created by mrVinicius on 10/10/2024 in #support
Stores & CreateResource
My guess as to why the store version is not being triggered is that, since I'm not manually calling an item from the store, the reactive system isn't being set. With that said, is there a workaround for this, or should I just use a signal?
10 replies
SSolidJS
Created by mrVinicius on 8/29/2024 in #support
Help styling an component via props using TailwindCss.
i'll test this properly later, or else i'll use splitProps
28 replies
SSolidJS
Created by mrVinicius on 8/29/2024 in #support
Help styling an component via props using TailwindCss.
like this id imagine:
export function Button(props: ButtonProps): JSX.Element {
return <button class={buttonStyles(props)}"/>;
}
export function Button(props: ButtonProps): JSX.Element {
return <button class={buttonStyles(props)}"/>;
}
28 replies
SSolidJS
Created by mrVinicius on 8/29/2024 in #support
Help styling an component via props using TailwindCss.
28 replies
SSolidJS
Created by mrVinicius on 8/29/2024 in #support
Help styling an component via props using TailwindCss.
I ended up with something similar, as i decided to go with cva. I tried pandacss but not my thing.
28 replies
SSolidJS
Created by mrVinicius on 8/29/2024 in #support
Help styling an component via props using TailwindCss.
yeah, thanks yall
28 replies
SSolidJS
Created by mrVinicius on 8/29/2024 in #support
Help styling an component via props using TailwindCss.
makes sense, i"ll look for another option
28 replies
SSolidJS
Created by mrVinicius on 8/29/2024 in #support
Help styling an component via props using TailwindCss.
I'd assume you meant tailwind needs to know the class at compile time, and base() is only getting it's value at runtime?
28 replies