Skip to content

mobx-tanstack-query

7.0.1

Patch Changes

7.0.0

Major Changes

  • #80 1e9cb4e Thanks @js2me! - Changed the result behavior after destroy() / abort.

    Previously, a destroyed query instance kept returning its last locally observed _result. Now, when result is read after destroy/abort, it is computed via queryObserver.getOptimisticResult(this.options), so it reflects the latest cache snapshot for the last queryKey without restoring subscriptions.

    This is a breaking change for consumers and tests that relied on the old "frozen result after destroy" behavior.

  • #79 a2dac5c Thanks @js2me! - Changed the global default for resultObservable from 'deep' to 'ref' for both Query and Mutation.

    If your app relies on deep MobX tracking of nested fields inside query or mutation results, set resultObservable: 'deep' explicitly (locally or via QueryClient defaults).

  • #74 ed887bd Thanks @js2me! - ### Breaking changes

    • Removed deprecated Destroyable.dispose() — use destroy() or Symbol.dispose / using where supported.
    • Removed Mobx* type aliases and MobxQuery / MobxMutation / MobxInfiniteQuery class aliases; import the canonical names (Query, Mutation, InfiniteQuery, QueryOptions, DefaultOptions, etc.).
    • Removed deprecated query client aliases: IQueryClient, QueryClientInterface, MobxDefaultOptions, MobxQueryClientHooks, MobxQueryClientConfig.
    • Removed resetOnDispose from query features and mutation options / defaults — use resetOnDestroy only.

6.16.1

Patch Changes

6.16.0

Minor Changes

  • da6909d Thanks @js2me! - added lazyDelay option for queries and mutations as features

6.15.1

Patch Changes

  • eeb0abf Thanks @js2me! - fixed resultObservable work with merging with query client

6.15.0

Minor Changes

  • 73207cc Thanks @js2me! - added resultObservable query and mutation features

6.14.1

Patch Changes

6.14.0

Minor Changes

  • 0f5e9a9 Thanks @js2me! - [internal] update all deps to latest (vite 8.x, typescript 6.x, jsdoc 29, yummies 7.12.x)

6.13.0

Minor Changes

  • 7c52772 Thanks @js2me! - refactored Query and InfiniteQuery (extends from BaseQuery as root of logic for queries)

Patch Changes

6.12.1

Patch Changes

  • 514d16e Thanks @js2me! - fixed twice+ calls of onDone onError for queries"

  • 091f71e Thanks @js2me! - fixed bug with cyclic calls (onDone + enableOnDemand flag)

6.12.0

Minor Changes

6.11.4

Patch Changes

6.11.3

Patch Changes

  • 9e60799 Thanks @js2me! - fix bug with not reactive options in queries sometimes (#64)

6.11.2

Patch Changes

6.11.1

Patch Changes

  • d2a3875 Thanks @js2me! - try to fix AnyQueryClient wrong typings for bun usage

  • c9af938 Thanks @js2me! - [internal] build modification

6.11.0

Minor Changes

6.10.2

Patch Changes

  • 6029956 Thanks @js2me! - fix redundant updateResult observable call after initialize mutation/query

6.10.1

Patch Changes

  • cd2e6e1 Thanks @js2me! - twice call of get dynamic options fn (queries)

6.10.0

Minor Changes

  • 3ec51de Thanks @js2me! - added dynamicOptionsComparer query feature

6.9.0

Minor Changes

Patch Changes

6.8.5

Patch Changes

6.8.4

Patch Changes

  • 6d4e11b Thanks @js2me! - try to fix zombie observers with lazy option

6.8.3

Patch Changes

6.8.2

Patch Changes

  • ba30553 Thanks @js2me! - fixed typings of mutationFn (second argument)

6.8.1

Patch Changes

  • d00661c Thanks @js2me! - fix missing hooks use in mutation

  • d00661c Thanks @js2me! - fix missing pass second arg for mutationFn (MutationContext)

6.8.0

Minor Changes

  • afacc73 Thanks @js2me! - support new version @tanstack/query-core (5.90.2)

  • 969228b Thanks @js2me! - improved documentation for Query

Patch Changes

  • afacc73 Thanks @js2me! - fixed transformError query/mutation feature

6.7.0

Minor Changes

  • 24a8a41 Thanks @js2me! - added autoRemovePreviousQuery query feature

  • 24a8a41 Thanks @js2me! - added value "safe" for removeOnDestroy option for query

  • b626ab4 Thanks @js2me! - rework query/mutation features code (refactor and clean code inside queries and mutations)

  • 24a8a41 Thanks @js2me! - safe option for remove() method for queries

Patch Changes

6.6.4

Patch Changes

  • 17ff372 Thanks @js2me! - fixed typings in setData of InfiniteQuery

6.6.3

Patch Changes

6.6.2

Patch Changes

6.6.1

Patch Changes

6.6.0

Minor Changes

  • 91da4e2 Thanks @js2me! - added cumulativeQueryHash option for queries

6.5.0

Minor Changes

  • 317f725 Thanks @js2me! - added removeOnDestroy to remove query after destroy or abortSignal aborted

  • 317f725 Thanks @js2me! - added remove() method for Query/InfiniteQuery to remove query

6.4.0

Minor Changes

  • 85b8ea6 Thanks @js2me! - cancel() method for Query (-> queryClient.cancelQueries)

6.3.1

Patch Changes

  • 43f1870 Thanks @js2me! - fixed mixing static query key pass for queries

6.3.0

Minor Changes

  • 5b0af46 Thanks @js2me! - make mutate method in Mutation as bounded method

  • 5b0af46 Thanks @js2me! - make start as bounded method for queries

  • 5b0af46 Thanks @js2me! - make refetch as bounded method for queries

  • 5b0af46 Thanks @js2me! - make start method in Mutation as bounded method

Patch Changes

  • 5b0af46 Thanks @js2me! - fixed query start() method (duplicate request calls) and ignoring updating query params

6.2.2

Patch Changes

  • 3a10696 Thanks @js2me! - [internal] move lazyObserve util to yummies/mobx package

6.2.1

Patch Changes

6.2.0

Minor Changes

  • 9ef86a1 Thanks @js2me! - ability to get access to query\mutation result properties using query._ or mutation._ properties access

  • 9ef86a1 Thanks @js2me! - transformError option for queries and mutations

6.1.2

Patch Changes

6.1.1

Patch Changes

6.1.0

Minor Changes

  • #30 bee7713 Thanks @js2me! - added lazy option for queries and mutations which work on lazy observables from mobx

Patch Changes

  • #30 bee7713 Thanks @js2me! - remove a lot of useless reactions (replaced it by more simple callbacks)

6.0.11

Patch Changes

  • 35e255b Thanks @js2me! - fix is result requested change mobx warning due to abort

6.0.10

Patch Changes

6.0.9

Patch Changes

6.0.8

Patch Changes

6.0.7

Patch Changes

6.0.6

Patch Changes

6.0.5

Patch Changes

6.0.4

Patch Changes

  • ca0ce21 Thanks @js2me! - add dynamicOptionsUpdateDelay Query feature

6.0.3

Patch Changes

6.0.2

Patch Changes

6.0.1

Patch Changes

6.0.0

Major Changes

  • aa4e9df Thanks @js2me! - add deprecation jsdoc for all deprecated types and runtime

Released under the MIT License.