Skip to content

fix setQueryData not creating a new query#222

Merged
tannerlinsley merged 3 commits into
TanStack:masterfrom
brumm:setQueryData-does-not-actually-create-query
Mar 10, 2020
Merged

fix setQueryData not creating a new query#222
tannerlinsley merged 3 commits into
TanStack:masterfrom
brumm:setQueryData-does-not-actually-create-query

Conversation

@brumm

@brumm brumm commented Mar 10, 2020

Copy link
Copy Markdown
Contributor

When not using { exact: true }, findQueries would return an empty array, which would skip the check at https://github.com/tannerlinsley/react-query/blob/master/src/queryCache.js#L179, thus never actually creating a query

@brumm
brumm force-pushed the setQueryData-does-not-actually-create-query branch from c79dd33 to 4df6c97 Compare March 10, 2020 14:46
@tannerlinsley
tannerlinsley merged commit b46e46d into TanStack:master Mar 10, 2020
@nx-cloud

nx-cloud Bot commented Feb 21, 2025

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 37d0f1d

Command Status Duration Result
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 2m View ↗
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-06-28 00:01:04 UTC

GEREGUR pushed a commit to GEREGUR/query that referenced this pull request Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants