You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the type definition says that there should be a second argument for a value. I'm not sure why this second argument is required or even what it does. Is it a dependency? And if so, shouldn't it be optional since someSignalValue() is automatically tracked?
Maybe I'm misunderstanding. Thanks!
The text was updated successfully, but these errors were encountered:
I didn't actually do the typing for this repo, it was community driven and admittedly I haven't used this in a TS based project yet. If it has a type error with the 2nd argument missing that sounds like a bug with the types. The signatures should really be exporting same types as the main Solid repo.
TypeScript complains that createEffect should have 2 arguments. I believe the following should work without issue:
However, the type definition says that there should be a second argument for a
value
. I'm not sure why this second argument is required or even what it does. Is it a dependency? And if so, shouldn't it be optional sincesomeSignalValue()
is automatically tracked?Maybe I'm misunderstanding. Thanks!
The text was updated successfully, but these errors were encountered: