-
c7713eaThanks @js2me! - Exposepromiseproperty on Query and InfiniteQuery for Suspense integration (#28)The
promiseproperty is already provided by TanStack Query'sQueryObserverResultbut was not proxied by the library. It can be used to wait for the query to complete, or withReact.use(query.promise)for Suspense integration whenexperimental_prefetchInRender: trueis enabled.
-
#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
0f5e9a9Thanks @js2me! - [internal] update all deps to latest (vite 8.x, typescript 6.x, jsdoc 29, yummies 7.12.x)
7c52772Thanks @js2me! - refactored Query and InfiniteQuery (extends from BaseQuery as root of logic for queries)
-
c9f82d5Thanks @js2me! - improve onDone onError callback handlers -
#70
e6fff8cThanks @js2me! - fixed bug with initial data in preset style (#66)
-
514d16eThanks @js2me! - fixed twice+ calls of onDone onError for queries" -
091f71eThanks @js2me! - fixed bug with cyclic calls (onDone + enableOnDemand flag)
- #61
886114cThanks @verylovestars! - fix the start method of InfiniteQuery
-
24a8a41Thanks @js2me! - addedautoRemovePreviousQueryquery feature -
24a8a41Thanks @js2me! - added value"safe"forremoveOnDestroyoption for query -
b626ab4Thanks @js2me! - rework query/mutation features code (refactor and clean code inside queries and mutations) -
24a8a41Thanks @js2me! -safeoption forremove()method for queries
-
317f725Thanks @js2me! - addedremoveOnDestroyto remove query after destroy or abortSignal aborted -
317f725Thanks @js2me! - addedremove()method forQuery/InfiniteQueryto remove query
-
5b0af46Thanks @js2me! - makemutatemethod in Mutation as bounded method -
5b0af46Thanks @js2me! - makestartas bounded method for queries -
5b0af46Thanks @js2me! - makerefetchas bounded method for queries -
5b0af46Thanks @js2me! - makestartmethod in Mutation as bounded method
5b0af46Thanks @js2me! - fixed querystart()method (duplicate request calls) and ignoring updating query params
-
9ef86a1Thanks @js2me! - ability to get access to query\mutation result properties using query._ or mutation._ properties access -
9ef86a1Thanks @js2me! -transformErroroption for queries and mutations
- #30
bee7713Thanks @js2me! - addedlazyoption for queries and mutations which work on lazy observables from mobx