Currently we have a fixed setting on the useQuery hook keepDataWhileLoading that defines if the data is kept while fetching new data. But this is set at hook initialisation. It can be useful to control this on a per request level.
Instead of having it as part of the initial options, this should be moved to a param on the load function. And all places using the hook should be refactored to use this approach instead.
Currently we have a fixed setting on the useQuery hook
keepDataWhileLoading
that defines if the data is kept while fetching new data. But this is set at hook initialisation. It can be useful to control this on a per request level.Instead of having it as part of the initial options, this should be moved to a param on the load function. And all places using the hook should be refactored to use this approach instead.