Bug fix for queries status. The enabled flag was possibly undefined due to the value of the sync variable. enabled = undefined is defaulted to true in react-query, meaning that the query could be enabled and disabled for a frame. This would allow the query to move from an idle fetch state into a fetching fetch state, causing the query to read as a status of loading even if that is not possible given the invariants.
Overview
Bug fix for queries status. The enabled flag was possibly undefined due to the value of the sync variable. enabled = undefined is defaulted to true in react-query, meaning that the query could be enabled and disabled for a frame. This would allow the query to move from an idle fetch state into a fetching fetch state, causing the query to read as a status of loading even if that is not possible given the invariants.
Legal
This project is available under the Apache 2.0 License.