amplitude / redux-query

A library for managing network state in Redux
https://amplitude.github.io/redux-query
Other
1.1k stars 67 forks source link

Add `force: true` as a default for useRequestOnDemand callback #276

Closed kelsonpw closed 2 years ago

kelsonpw commented 2 years ago

Currently, if the callback to useRequestOnDemand is called while a request is in flight, the secondary callback will always return undefined. This update forces the query config to always force the request. Consumers can still control this behavior through their own query config.