Closed Tronikelis closed 6 months ago
Hmm, thanks for this. Looks like in an attempt to allow code like
useExample([() => c()])
I inadvertently allowed code like useExample([c()])
. Will just need to tighten up the checks for custom hooks—they're meant to be pretty permissive, but definitely not meant to allow incorrect code like this.
thanks
Describe the bug Best way to explain is an example
https://playground.solidjs.com/anonymous/695d5961-9a9d-4422-8d72-e1d8f06cf98e
Expected behavior Should report for both of them
Environment (please complete the following information):