Replies: 1 comment
-
this looks interesting |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When writing dependent queries, it's common to expect the query function to depend on the value passed to the
enabled
option and its truthyness. IfuseQuery
can ensure the behavior with some type narrowing, it would make all falsyness checks in the query function redundant. For example:This design is already adopted in SolidJS's
createResource()
(the overload that uses a source signal) and works pretty conveniently.Beta Was this translation helpful? Give feedback.
All reactions