lucas
lucas
SSolidJS
Created by lucas on 5/30/2024 in #support
Destructuring functional props remove reactivity ?
Using a createMemo instead of a signal + createEffect for fileterableOptionsProps fixed my issue 🤷‍♂️ The destructuring work as itended now.
17 replies
SSolidJS
Created by lucas on 5/30/2024 in #support
Destructuring functional props remove reactivity ?
fileterableOptionsProps is a signal containing various props (functions) i tested those function individualy using a another createEffect but those function have a scope that will be initialised latter (when the signalfileterableOptionsProps is updated). and the Select only retrive the initial function scope no the updated one Select is a library but i could create my own and see if this is the issue thanks for the hints !
17 replies
SSolidJS
Created by lucas on 5/30/2024 in #support
Destructuring functional props remove reactivity ?
Unfortunatly this snippet doesn't work for me
17 replies
SSolidJS
Created by lucas on 5/30/2024 in #support
Destructuring functional props remove reactivity ?
Ok thanks i taught they was a more elegant way edit : the first synipet doesn't work
17 replies
SSolidJS
Created by lucas on 5/30/2024 in #support
Destructuring functional props remove reactivity ?
If i understood correctly destructuring props coming from a function need splitProps ? (i am having issue with my English as i cant really understand The problem is only when destructuring when accepting props to a function) edit: Ah i might just understood : The issue is destructuring idividual prop form a spread syntaxe when those props are function ? I my case the function is a signal so i cant properly use splitProps as it wont react to the signal changes ? I would need to use createSignal or CreateMemo but the extracted value form calling splitProps would also be stored in a signal so we are back to the starting point ? I must be doing something wrong ...
17 replies