fix(solid-query): resolve query client outside memos#10571
fix(solid-query): resolve query client outside memos#10571KimHyeongRae0 wants to merge 1 commit intoTanStack:mainfrom
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit 9e204dc
☁️ Nx Cloud last updated this comment at |
Changes
Closes #10445.
Solid hooks no longer call
useQueryClientfrom insidecreateMemo.useQueryClientResolvercapturesQueryClientContextat hook top level, then affected hooks call the returned accessor from memos.This keeps explicit
queryClientaccessors reactive and leaves the existinguseQueryClient(client)API unchanged.Checklist
pnpm run test:pr.Local verification:
pnpm --filter @tanstack/solid-query test:libpnpm --filter @tanstack/solid-query test:types:tscurrentpnpm --filter @tanstack/solid-query test:eslintRelease Impact