Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(query-core): don't finalizeThenable of different queries (#8171)
* fix(query-core): don't finalizeThenable of different queries if we have multiple promises in-flight, once they resolve, we need to make sure to not finalize with data / error from a different key; otherwise, we might see intermediate data of non-matching keys * chore: extract promise tests to their own file * test: add a test case for not resolving with intermediate data * fix: only stop finalizing if we were previously in pending state this makes sure we can read stale data from entries when switching to them immediately * chore: add another test for background updates
- Loading branch information