hook
Can I destructure my hook in SolidJS? It returns values via an anonymous function and doesn't lose reactivity. Is it bad?
1 Reply
depends on the implementation
const [signal, setSignal] = createSignal()
is also a destructuring
this type of code would not reactively update on updates to signal:
as long as you keep in mind that the component will never re-run, you should be fine.