Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(queryCache): add failing test for partially undefined key (TanSt…
…ack#3741) The current behavior when using functions such as invalidateQueries or setQueriesData is unexpected when objects with undefined properties are involved. A key containing an object with an undefined property is hashed without the undefined property, yet the property is considered in the partialDeepEqual function. This creates some confusing scenarios, as demonstrated in the discussion on TkDodo's blog <TkDodo/blog-comments#71 (comment)> and in the referenced issue This commit includes a failing test to demonstrate the expected behavior
- Loading branch information