Skip to content

Commit 6d4e11b

Browse files
committed
fix: try to fix lazy experimental feature for queries/mutations
1 parent 9f3bc52 commit 6d4e11b

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

.changeset/common-words-sort.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"mobx-tanstack-query": patch
3+
---
4+
5+
try to fix zombie observers with `lazy` option

docs/api/Query.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,18 @@ Explanation of difference between `fetchStatus` and `status`:
267267

268268
### `options: QueryOptions`
269269

270-
The options used to configure the query.
270+
The options used to configure the query.
271+
Gives access to query options from tanstack query core package defined by user and default client options.
272+
273+
::: tip This property is read only. You can't update it directly
274+
:::
275+
276+
Example:
277+
```ts
278+
const query = new Query({ enabled: false });
279+
280+
console.log(query.options.enabled); // false
281+
```
271282

272283
### `queryObserver: QueryObserver`
273284

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
},
5454
"dependencies": {
5555
"linked-abort-controller": "^1.1.0",
56-
"yummies": "^5.4.8"
56+
"yummies": "^5.7.1"
5757
},
5858
"devDependencies": {
5959
"@changesets/changelog-github": "^0.5.1",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)