reactfire
reactfire copied to clipboard
Add an option to only enable the query when `enabled` option is set
Description
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
Why?
Sometimes a query might depend on another query
react-firebase-hooks, useSWR, etc handles this by accepting a null query, which is another option.