Skip to content

Tags: mwmcode/react-query

Tags

v2.4.4

Toggle v2.4.4's commit message

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
fix(types): v2 (TanStack#626)

* enable types, update simpleQuery

* update MutationState

* stricter query type

Co-authored-by: Michaël De Boey <info@michaeldeboey.be>

* verify imports

* verify import 2

* update fetchMore

* move ready condition to enabled

* update MutateOptions

* update config

* fix QueryResulltBase

* remove queryKey function

* remove duplicate type

* update prefetch

* functions are not valid queryKeys

* add option to queryFn, formatting

* Add dtslinting to ci test

* remove deprecated variables

* add types to formatting

* add resetErrorBoundaries

Co-authored-by: Michaël De Boey <info@michaeldeboey.be>

v2.4.3

Toggle v2.4.3's commit message
fix(invalidateQueries): respect enabled flag

Fixes TanStack#648

v1.5.10

Toggle v1.5.10's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update test-and-publish.yml

v2.4.2

Toggle v2.4.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix(query-cache): Prevent re-run of query for refetch interval if upd…

…ate is disabled (TanStack#640)

* fix(query-cache): Prevent re-run of query based on refetch interval if update is disabled

* Update src/core/queryCache.js

Co-authored-by: Bishwendu Kundu <bishwendu.kundu@broadcom.com>
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>

Fixes TanStack#635

v2.4.1

Toggle v2.4.1's commit message
fix(useMutation): ensure all side-effects are always called

Fixes TanStack#249

Now all we need is the new test from TanStack#641

v2.4.0

Toggle v2.4.0's commit message
feat: add initialStale option to queries

By default `initialData` is not considered stale, but sometimes you may want it to be, for instance, if your initial data is only a partial subset of an object and you know you will need to refetch the full version immediately after mounting. For this, you can use the `initialStale: true` options.

By setting `initialStale` to `true`, the `initialData` will be considered `stale` and will cause a refetch when the query mounts for the first time.

```js
function Todos() {
  const queryInfo = useQuery('todos', () => fetch('/todos'), {
    initialData: todoListPreview,
    initialStale: true,
  })
}
```

v2.3.0

Toggle v2.3.0's commit message

v2.2.3

Toggle v2.2.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: prefetchQuery args check (TanStack#631)

v2.2.2

Toggle v2.2.2's commit message
fix(prefetchQuery): add prefetchQuery(key, options) overload

v2.2.1

Toggle v2.2.1's commit message
fix: queryKeySerializer now in the right spot of the config