lucas
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
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