Skip to content

feat(ReactQueryConfigProvider): update defaultConfigRef#775

Merged
tannerlinsley merged 1 commit intoTanStack:masterfrom
TuckerWhitehouse:config-provider-update-default-ref
Jul 22, 2020
Merged

feat(ReactQueryConfigProvider): update defaultConfigRef#775
tannerlinsley merged 1 commit intoTanStack:masterfrom
TuckerWhitehouse:config-provider-update-default-ref

Conversation

@TuckerWhitehouse
Copy link
Contributor

@TuckerWhitehouse TuckerWhitehouse commented Jul 17, 2020

useConfigContext will always be populated. Checking the context value before defaultConfig update.

I was assuming that this was the original intent of the code and this change fixes an issue I was experiencing where queryCache.prefetchQuery was not seeing the default queryFn set in the provider.

`useConfigContext` will always be populated. Checking the context value before defaultConfig update
@vercel
Copy link

vercel bot commented Jul 17, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tannerlinsley/react-query/8ct7sxqqb
✅ Preview: https://react-query-git-fork-tuckerwhitehouse-config-provider-5d5a98.tannerlinsley.vercel.app

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