fix(query-core): make sure we don't invoke select too often when using placeholderData #9007
github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: query-core
TkDodo reviewed
@@ -937,21 +927,0 @@937- queryKey: key,938- queryFn: () => data,939- select: () => data,940- })941-942- observer.setOptions({943- queryKey: key,944- queryFn: () => data,945- select: () => {946- return selectedData947- },948- placeholderData: placeholderData1,949- })950-951- expect(observer.getCurrentResult().isPlaceholderData).toBe(true)952-953- observer.setOptions({954- queryKey: key,955- queryFn: () => data,956- // @ts-expect-error957- select: () => undefined,github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: eslint-plugin-query
github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: vue-query
TkDodo merged this38178ba
TkDodo closed this
Sign in to join this conversation.
View your CI Pipeline Execution ↗ for commit 0149f5200f2d107ffe613d2a9657e4ae649e94cc.
nx affected --targets=test:sherif,test:knip,tes...nx run-many --target=build --exclude=examples/*...☁️ Nx Cloud last updated this comment at
2025-04-12 14:19:13UTC