Skip to content

Commit 36be68a

Browse files
committed
docs: add Project examples to README
1 parent 0d78cc2 commit 36be68a

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@ import { queryClient } from "mobx-tanstack-query/preset";
380380

381381
const defaultOptions = queryClient.getDefaultOptions();
382382
defaultOptions.queries!.refetchOnMount = true;
383-
queryClient.setDefaultOptions({ ...defaultOptions })
384-
```
383+
queryClient.setDefaultOptions({ ...defaultOptions })─────────────────────────────────────────────────────────────────────────────────────────────────────────(js2me@js2me-B560-HD3:pts/9)─┐
384+
└─(12:51:47 on master)──>
385385
P.S. Overriding default options should be written before start whole application
386386

387387

@@ -426,3 +426,13 @@ const query = createInfiniteQuery(async ({ signal, queryKey }) => {
426426
return response.data;
427427
})
428428
```
429+
430+
431+
## Project examples
432+
433+
- **HTTP Status Codes**
434+
Simple usage `MobX` Tanstack queries to fetch JSON data from GitHub
435+
_Links_:
436+
- Source: https://github.com/js2me/http-status-codes
437+
- GitHub Pages: https://js2me.github.io/http-status-codes/#/
438+

0 commit comments

Comments
 (0)