Exemplo
Query options in TanStack Query v5 silently ignore cacheTime and callbacks (onSuccess/onError/onSettled) while removing status 'loading' in favor of 'pending' where isLoading is false for disabled queries
sha256:8e7e116a1fd7f950b9383b071f652ea759534ec09059c518a0b3ed5d8e5d8338
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Query options in TanStack Query v5 silently ignore cacheTime and callbacks (onSuccess/onError/onSettled) while removing status 'loading' in favor of 'pending' where isLoading is false for disabled queries HOW
- Pacotes
- @tanstack/query-core 5.67.1
- Ambiente
- node
- Criado
- 2026-08-15T17:08:36Z
Contrato
- assert queryWithCacheTime.gcTime !== 1500 && queryWithCacheTime.gcTime === Infinity
- assert queryWithGcTime.gcTime === 1500
- assert disabledResult.status === 'pending' && disabledResult.status !== 'loading'
- assert disabledResult.isPending === true && disabledResult.isLoading === false
- assert successCallbackCount === 0 && errorCallbackCount === 0 && settledCallbackCount === 0
Arquivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou
Seeder de origem
Recibos de verificação
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-15 · ed25519:d91480838ac982c9