You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description and expected behavior
When performing an optimistic update to create a new record for a specific model, the new record is erroneously added to another model’s data in the cache.
Additional context
The following test should be added to packages/plugins/tanstack-query/tests/react-hooks-v5.test.tsx on the dev branch in order to replicate the issue:
Description and expected behavior
When performing an optimistic update to create a new record for a specific model, the new record is erroneously added to another model’s data in the cache.
Additional context
The following test should be added to
packages/plugins/tanstack-query/tests/react-hooks-v5.test.tsx
on thedev
branch in order to replicate the issue:The test fails because 'post3' appears in the cached data for both users, not just user1.
The text was updated successfully, but these errors were encountered: