Rafael Hengles
Rafael Hengles
Explore posts from servers
SSolidJS
Created by Rafael Hengles on 3/15/2024 in #support
events not fired inside react modal
10 replies
SSolidJS
Created by Rafael Hengles on 3/15/2024 in #support
events not fired inside react modal
No description
10 replies
SSolidJS
Created by Rafael Hengles on 3/15/2024 in #support
events not fired inside react modal
No description
10 replies
SSolidJS
Created by Rafael Hengles on 3/15/2024 in #support
events not fired inside react modal
No description
10 replies
SSolidJS
Created by Rafael Hengles on 3/15/2024 in #support
events not fired inside react modal
just normally, like
return <div onClick={myEvent}>xxxx</div>
return <div onClick={myEvent}>xxxx</div>
And this works just fine outside of the modal
10 replies
SSolidJS
Created by Rafael Hengles on 6/22/2023 in #support
typescript cssproperties
Hmm, JSX! thanks!
3 replies
SSolidJS
Created by Rafael Hengles on 6/13/2023 in #support
setstore mutate more than one property in one call
Strange, I tried a small example and it did not recreate the components, I don't know yet what is causing it to recreate in my more complex app https://playground.solidjs.com/anonymous/41fd82b2-3381-46aa-b080-ff32c4afb4f0
12 replies
SSolidJS
Created by Rafael Hengles on 6/9/2023 in #support
how to avoid child component re-creation with For
Very nice, thanks! Will check it out
16 replies
SSolidJS
Created by Rafael Hengles on 6/9/2023 in #support
how to avoid child component re-creation with For
also this is not typechecking right to me (at least in vscode, in which TS is very fragile to me using win10 with wsl (also with every project, not just Solid)) When I pass the "valueToChange" string key of the property, TS complains that it "is not assignable to parameter of type 'never'."
16 replies
SSolidJS
Created by Rafael Hengles on 6/9/2023 in #support
how to avoid child component re-creation with For
the setStore docs is not very explicit with this and some people (like me) are very used to the patterns used by diffing frameworks
16 replies
SSolidJS
Created by Rafael Hengles on 6/9/2023 in #support
how to avoid child component re-creation with For
In this way, setStore knows exactly what has changed and can update it accordingly
16 replies
SSolidJS
Created by Rafael Hengles on 6/9/2023 in #support
how to avoid child component re-creation with For
you cannot call setStore() and return a object with the changed value you must use each parameter of setStore() to walk down the path to the property you want to change instead of setStore( item => item.id === id, obj => { ...obj, valueToChange } ) you should call setStore( item => item.id === od, "valueToChange", valueToChange )
16 replies
SSolidJS
Created by Rafael Hengles on 6/9/2023 in #support
how to avoid child component re-creation with For
it appears that the secret is how you use the setStore function
16 replies
SSolidJS
Created by Rafael Hengles on 6/9/2023 in #support
how to avoid child component re-creation with For
hmmm....
16 replies
SSolidJS
Created by Rafael Hengles on 6/9/2023 in #support
how to avoid child component re-creation with For
so it's hard to figure out how to make this work with subcomponents
16 replies
SSolidJS
Created by Rafael Hengles on 6/9/2023 in #support
how to avoid child component re-creation with For
many reactivity examples render everything in only one component
16 replies
SSolidJS
Created by Rafael Hengles on 6/9/2023 in #support
how to avoid child component re-creation with For
From what I saw in the solid docs, there's not much examples that uses a lot of components
16 replies
SSolidJS
Created by Rafael Hengles on 6/9/2023 in #support
how to avoid child component re-creation with For
I just tried using the 'setStore' call to mutate the object and return the same old tuple, but now the child component is not updated I guess it sees the same object and assumes the element is already up-to-date
16 replies
SSolidJS
Created by Rafael Hengles on 6/9/2023 in #support
how to avoid child component re-creation with For
how to reconcile immutable patterns with For ?
16 replies
SSolidJS
Created by Rafael Hengles on 6/9/2023 in #support
how to avoid child component re-creation with For
This page[0] in particular says that Solid "strongly recommends immutable patterns" [0] https://www.solidjs.com/tutorial/stores_mutation
16 replies