reactfire icon indicating copy to clipboard operation
reactfire copied to clipboard

Add an option to only enable the query when `enabled` option is set

Open Manokii opened this issue 3 years ago • 1 comments

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

Manokii avatar Apr 28 '22 17:04 Manokii

react-firebase-hooks, useSWR, etc handles this by accepting a null query, which is another option.

bookchris avatar Sep 11 '22 20:09 bookchris