Closed Manokii closed 1 year ago
Add an option to only do the queries if enabled is set and has truthy value. This behavior is similar to react-query's QueryOptions.enabled
enabled
react-query
QueryOptions.enabled
Sometimes a query might depend on another query
react-firebase-hooks, useSWR, etc handles this by accepting a null query, which is another option.
Description
Add an option to only do the queries if
enabled
is set and has truthy value. This behavior is similar toreact-query
'sQueryOptions.enabled
Why?
Sometimes a query might depend on another query