Skip to content

Tags: bradennapier/react-query

Tags

v4.0.0-beta.12

Toggle v4.0.0-beta.12's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix(queryClient): make sure that setQueryData can return undefined fr…

…om the updater function on type level (TanStack#3615)

the only runtime tests we had didn't use the previous value, so the generic defaults to unknown; the TS error becomes apparent when providing a generic to setQueryData

v4.0.0-beta.11

Toggle v4.0.0-beta.11's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix(query): updating with setQueryData should not affect fetchStatus (T…

…anStack#3613)

queries can be fetching _while_ we are making a manual update are still fetching, so we have to set fields that affect the fetch conditionally (fetchStatus, fetchFailureCount)

v4.0.0-beta.10

Toggle v4.0.0-beta.10's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: uSES import for react-native / esm (TanStack#3601)

v4.0.0-beta.9

Toggle v4.0.0-beta.9's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: type issue when void or undefined is returned from query function (

TanStack#3541)

* fix(types): fix handling of promise return type in QueryFunctionData

* fix(QueryFunction): return type restrict void and avoid union type distribution

* fix(QueryClient): make setQueryDefaults compatible with adjusted QueryFunction type

* fix(useQueries): correct type inferrence in GetResults with new QueryFunction type

* fix(tests): adjust all test cases which use any or never as query function return type to comply with new QueryFunction type

* fix(tests): change incorrect query function return types of query tests from string to unknown

* feature(useQuery): add test cases covering void and Promise<void> return types

* feature(useQueries): reject void or undefined as query function return type

* feature(useQueries): add test cases for invalid query function return types

* fix tsc error after rebasing lastest beta branch

v3.39.0

Toggle v3.39.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
feat(devtools): the react query logo can now close the devtools (TanS…

…tack#3577)

* feat(devtools): update react query logo to close devtools

added button wrapper on react query logo which onClick closes devtools window

closes TanStack#3067

* feat(devtools): update test case for open and close devtools

v4.0.0-beta.8

Toggle v4.0.0-beta.8's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: move usage of React Context out of core package (TanStack#3578)

* refactor: move test utils out of reactjs

so that we can import them in core

* refactor: move react specific utils back to reactjs

* refactor: adapt test imports

* refactor: move two tests to the reactjs package

because they render a component

* chore: setup eslint import zones

so that we can't import anything into `core` that lives in other packages, like reactjs

* fix: move usage of React Context out of core package

by keeping HydrateOptions separate from React, and only add ContextOptions where necessary

v3.38.1

Toggle v3.38.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix(queryObserver): cache select errors (TanStack#3554)

there is no need to re-run the select function if it is referentially stable, even when it throws an error. if no dependency has changed, we can re-use the cached error, as the select function should be idempotent and thus return the same error anyway.

further, if we have cached data from a previously successful select, that should be returned as `data` alongside the error.

v4.0.0-beta.7

Toggle v4.0.0-beta.7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: Use fully-specified path to import use-sync-external-store/shim (T…

…anStack#3561)

v4.0.0-beta.6

Toggle v4.0.0-beta.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: ESM compliant bundling (TanStack#3521)

* fix various bundling issues

* add package.json to exports

* remove @svgr/rollup

* remove node v12 from CI

* support devtools/development

* do not alias react-query

* add side effect

* remove "module"

* fix

* fix exports

* add "module"

* update @babel/runtime

* don't preserve modules

* switch back to babel

* add migration note

* update babel

* update rollup

* downgrade @rollup/plugin-commonjs

v3.38.0

Toggle v3.38.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
feat: expose errorUpdateCount on useQuery (TanStack#3532)

* expose errorUpdateCount on useQuery

* refactored test slightly

* Update docs/src/pages/reference/useQuery.md

as  suggested

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>

* removed the first click as we fetch on default,

* prettier

* added errorUpdateCount to failed tests.

* prettier

Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>