mobx-tanstack-query
7.0.1
Patch Changes
7.0.0
Major Changes
#80
1e9cb4eThanks @js2me! - Changed theresultbehavior afterdestroy()/ abort.Previously, a destroyed query instance kept returning its last locally observed
_result. Now, whenresultis read after destroy/abort, it is computed viaqueryObserver.getOptimisticResult(this.options), so it reflects the latest cache snapshot for the lastqueryKeywithout restoring subscriptions.This is a breaking change for consumers and tests that relied on the old "frozen result after destroy" behavior.
#79
a2dac5cThanks @js2me! - Changed the global default forresultObservablefrom'deep'to'ref'for bothQueryandMutation.If your app relies on deep MobX tracking of nested fields inside query or mutation results, set
resultObservable: 'deep'explicitly (locally or viaQueryClientdefaults).#74
ed887bdThanks @js2me! - ### Breaking changes- Removed deprecated
Destroyable.dispose()— usedestroy()orSymbol.dispose/usingwhere supported. - Removed
Mobx*type aliases andMobxQuery/MobxMutation/MobxInfiniteQueryclass aliases; import the canonical names (Query,Mutation,InfiniteQuery,QueryOptions,DefaultOptions, etc.). - Removed deprecated query client aliases:
IQueryClient,QueryClientInterface,MobxDefaultOptions,MobxQueryClientHooks,MobxQueryClientConfig. - Removed
resetOnDisposefrom query features and mutation options / defaults — useresetOnDestroyonly.
- Removed deprecated
6.16.1
Patch Changes
6.16.0
Minor Changes
6.15.1
Patch Changes
6.15.0
Minor Changes
6.14.1
Patch Changes
6.14.0
Minor Changes
0f5e9a9Thanks @js2me! - [internal] update all deps to latest (vite 8.x, typescript 6.x, jsdoc 29, yummies 7.12.x)
6.13.0
Minor Changes
7c52772Thanks @js2me! - refactored Query and InfiniteQuery (extends from BaseQuery as root of logic for queries)
Patch Changes
c9f82d5Thanks @js2me! - improve onDone onError callback handlers#70
e6fff8cThanks @js2me! - fixed bug with initial data in preset style (#66)
6.12.1
Patch Changes
514d16eThanks @js2me! - fixed twice+ calls of onDone onError for queries"091f71eThanks @js2me! - fixed bug with cyclic calls (onDone + enableOnDemand flag)
6.12.0
Minor Changes
6.11.4
Patch Changes
6.11.3
Patch Changes
6.11.2
Patch Changes
- #61
886114cThanks @verylovestars! - fix the start method of InfiniteQuery
6.11.1
Patch Changes
6.11.0
Minor Changes
6.10.2
Patch Changes
6.10.1
Patch Changes
6.10.0
Minor Changes
6.9.0
Minor Changes
Patch Changes
6.8.5
Patch Changes
6.8.4
Patch Changes
6.8.3
Patch Changes
6.8.2
Patch Changes
6.8.1
Patch Changes
6.8.0
Minor Changes
Patch Changes
6.7.0
Minor Changes
24a8a41Thanks @js2me! - addedautoRemovePreviousQueryquery feature24a8a41Thanks @js2me! - added value"safe"forremoveOnDestroyoption for queryb626ab4Thanks @js2me! - rework query/mutation features code (refactor and clean code inside queries and mutations)24a8a41Thanks @js2me! -safeoption forremove()method for queries
Patch Changes
6.6.4
Patch Changes
6.6.3
Patch Changes
6.6.2
Patch Changes
6.6.1
Patch Changes
6.6.0
Minor Changes
6.5.0
Minor Changes
317f725Thanks @js2me! - addedremoveOnDestroyto remove query after destroy or abortSignal aborted317f725Thanks @js2me! - addedremove()method forQuery/InfiniteQueryto remove query
6.4.0
Minor Changes
6.3.1
Patch Changes
6.3.0
Minor Changes
5b0af46Thanks @js2me! - makemutatemethod in Mutation as bounded method5b0af46Thanks @js2me! - makestartas bounded method for queries5b0af46Thanks @js2me! - makerefetchas bounded method for queries5b0af46Thanks @js2me! - makestartmethod in Mutation as bounded method
Patch Changes
5b0af46Thanks @js2me! - fixed querystart()method (duplicate request calls) and ignoring updating query params
6.2.2
Patch Changes
6.2.1
Patch Changes
6.2.0
Minor Changes
9ef86a1Thanks @js2me! - ability to get access to query\mutation result properties using query._ or mutation._ properties access9ef86a1Thanks @js2me! -transformErroroption for queries and mutations
6.1.2
Patch Changes
6.1.1
Patch Changes
6.1.0
Minor Changes
- #30
bee7713Thanks @js2me! - addedlazyoption for queries and mutations which work on lazy observables from mobx
Patch Changes
- #30
bee7713Thanks @js2me! - remove a lot of useless reactions (replaced it by more simple callbacks)
