This bugfix release fixes a logic issue with the new upsertQueryEntries
util that sometimes kept entries in a pending
state indefinitely.
Changelog
upsertQueryEntries
fixes
Users reported that in some cases, use of upsertQueryEntries
to insert RTKQ cache entries prevented any further refetches of that data from happening. After investigation, we found a logic mismatch for how we handle upserts vs the existing upsertQueryData
util, which meant that sometimes the entry would be left in a pending
state expecting a fulfilled
action from a request ID that would never happen.
This release fixes that issue and ensures the updates and refetches happen correctly.
What's Changed
- Ensure upserted cache entries always get written by @markerikson in #4768
Full Changelog: v2.5.0...v2.5.1