Skip to content

Commit

Permalink
docs: make examples point to main instead of master
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo committed Jun 24, 2022
1 parent 9f6c992 commit 3ebf0d4
Show file tree
Hide file tree
Showing 23 changed files with 57 additions and 57 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: react-query tests
on:
push:
branches:
- 'master'
- 'main'
- 'next'
- 'beta'
- '1.x'
Expand Down Expand Up @@ -35,8 +35,8 @@ jobs:
publish-module:
name: 'Publish Module to NPM'
needs: test
# publish only when merged in master on original repo, not on PR
if: github.repository == 'tannerlinsley/react-query' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/1.x' || github.ref == 'refs/heads/2.x')
# publish only when merged in main on original repo, not on PR
if: github.repository == 'tannerlinsley/react-query' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/1.x' || github.ref == 'refs/heads/2.x')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<img src="https://static.scarf.sh/a.png?x-pxid=be2d8a11-9712-4c1d-9963-580b2d4fb133" />

![React Query Header](https://github.com/tannerlinsley/react-query/raw/master/media/repo-dark.png)
![React Query Header](https://github.com/tannerlinsley/react-query/raw/main/media/repo-dark.png)

Hooks for fetching, caching and updating asynchronous data in React

Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/examples/auto-refetching.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ toc: false

This example works best when ran locally so you can open 2 separate browsers or tabs at the same time and interact between them.

- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/auto-refetching)
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/auto-refetching)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/auto-refetching)
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/auto-refetching)

<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/auto-refetching?autoresize=1&fontsize=14&theme=dark"
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/auto-refetching?autoresize=1&fontsize=14&theme=dark"
title="tannerlinsley/react-query: auto-refetching"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
style={{
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/examples/basic-graphql-request.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ title: Basic w/ GraphQL-Request
toc: false
---

- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/basic-graphql-request)
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/basic-graphql-request)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/basic-graphql-request)
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/basic-graphql-request)

<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/basic-graphql-request?autoresize=1&fontsize=14&theme=dark"
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/basic-graphql-request?autoresize=1&fontsize=14&theme=dark"
title="tannerlinsley/react-query: basic-graphql-request"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
style={{
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/examples/basic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ title: Basic
toc: false
---

- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/basic)
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/basic)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/basic)
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/basic)

<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/basic?autoresize=1&fontsize=14&theme=dark"
Expand Down
4 changes: 2 additions & 2 deletions docs/src/pages/examples/custom-hooks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ title: Custom Hooks
toc: false
---

- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/custom-hooks)
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/custom-hooks)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/custom-hooks)
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/custom-hooks)

<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/custom-hooks?autoresize=1&fontsize=14&theme=dark"
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/examples/default-query-function.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ title: Default Query Function
toc: false
---

- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/default-query-function)
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/default-query-function)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/default-query-function)
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/default-query-function)

<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/default-query-function?autoresize=1&fontsize=14&theme=dark"
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/default-query-function?autoresize=1&fontsize=14&theme=dark"
title="tannerlinsley/react-query: default-query-function"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
style={{
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/examples/focus-refetching.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ title: Focus Refetching
toc: false
---

- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/focus-refetching)
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/focus-refetching)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/focus-refetching)
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/focus-refetching)

<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/focus-refetching?autoresize=1&fontsize=14&theme=dark"
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/focus-refetching?autoresize=1&fontsize=14&theme=dark"
title="tannerlinsley/react-query: focus-refetching"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
style={{
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/examples/load-more-infinite-scroll.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ title: Load More / Infinite Scroll
toc: false
---

- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/load-more-infinite-scroll)
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/load-more-infinite-scroll)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/load-more-infinite-scroll)
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/load-more-infinite-scroll)

<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/load-more-infinite-scroll?autoresize=1&fontsize=14&theme=dark"
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/load-more-infinite-scroll?autoresize=1&fontsize=14&theme=dark"
title="tannerlinsley/react-query: load-more-infinite-scroll"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
style={{
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/examples/nextjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ title: Nextjs SSG
toc: false
---

- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/nextjs)
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/nextjs)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/nextjs)
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/nextjs)

<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/nextjs?autoresize=1&fontsize=14&theme=dark"
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/nextjs?autoresize=1&fontsize=14&theme=dark"
title="tannerlinsley/react-query: nextjs"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
style={{
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/examples/optimistic-updates-typescript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ title: Optimistic Updates in TypeScript
toc: false
---

- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/optimistic-updates-typescript)
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/optimistic-updates-typescript)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/optimistic-updates-typescript)
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/optimistic-updates-typescript)

<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/optimistic-updates-typescript?autoresize=1&fontsize=14&module=%2Fpages%2Findex.tsx&theme=dark"
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/optimistic-updates-typescript?autoresize=1&fontsize=14&module=%2Fpages%2Findex.tsx&theme=dark"
title="tannerlinsley/react-query: optimistic-updates-typescript"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
style={{
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/examples/optimistic-updates.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ title: Optimistic Updates
toc: false
---

- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/optimistic-updates)
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/optimistic-updates)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/optimistic-updates)
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/optimistic-updates)

<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/optimistic-updates?autoresize=1&fontsize=14&theme=dark"
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/optimistic-updates?autoresize=1&fontsize=14&theme=dark"
title="tannerlinsley/react-query: optimistic-updates"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
style={{
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/examples/pagination.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ title: Pagination
toc: false
---

- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/pagination)
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/pagination)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/pagination)
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/pagination)

<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/pagination?autoresize=1&fontsize=14&theme=dark"
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/pagination?autoresize=1&fontsize=14&theme=dark"
title="tannerlinsley/react-query: pagination"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
style={{
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/examples/playground.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ title: Playground
toc: false
---

- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/playground)
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/playground)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/playground)
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/playground)

<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/playground?autoresize=1&fontsize=14&theme=dark"
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/playground?autoresize=1&fontsize=14&theme=dark"
title="tannerlinsley/react-query: playground"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
style={{
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/examples/prefetching.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ title: Prefetching
toc: false
---

- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/prefetching)
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/prefetching)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/prefetching)
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/prefetching)

<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/prefetching?autoresize=1&fontsize=14&theme=dark"
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/prefetching?autoresize=1&fontsize=14&theme=dark"
title="tannerlinsley/react-query: prefetching"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
style={{
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/examples/react-native.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ toc: false
---

- [Open the Snack](https://snack.expo.dev/@arnaudbzn/react-query-basic-example)
- [TypeScript version in the repo](https://github.com/tannerlinsley/react-query/tree/master/examples/react-native)
- [TypeScript version in the repo](https://github.com/tannerlinsley/react-query/tree/main/examples/react-native)

<iframe
src="https://snack.expo.dev/@arnaudbzn/react-query-basic-example"
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/examples/rick-morty.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ title: Rick & Morty
toc: false
---

- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/rick-morty)
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/rick-morty)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/rick-morty)
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/rick-morty)

<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/rick-morty?autoresize=1&fontsize=14&theme=dark"
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/rick-morty?autoresize=1&fontsize=14&theme=dark"
title="tannerlinsley/react-query: rick-morty"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
style={{
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/examples/simple.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ title: Simple
toc: false
---

- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/simple)
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/simple)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/simple)
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/simple)

<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/simple?autoresize=1&fontsize=14&theme=dark"
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/simple?autoresize=1&fontsize=14&theme=dark"
title="tannerlinsley/react-query: basic"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
style={{
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/examples/star-wars.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ title: Star Wars
toc: false
---

- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/star-wars)
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/star-wars)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/star-wars)
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/star-wars)

<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/star-wars?autoresize=1&fontsize=14&theme=dark"
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/star-wars?autoresize=1&fontsize=14&theme=dark"
title="tannerlinsley/react-query: star-wars"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
style={{
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/examples/suspense.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ title: Suspense
toc: false
---

- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/suspense)
- [View Source](https://github.com/tannerlinsley/react-query/tree/master/examples/suspense)
- [Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/suspense)
- [View Source](https://github.com/tannerlinsley/react-query/tree/main/examples/suspense)

<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/suspense?autoresize=1&fontsize=14&theme=dark"
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/suspense?autoresize=1&fontsize=14&theme=dark"
title="tannerlinsley/react-query: suspense"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
style={{
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/guides/suspense.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { useQuery } from 'react-query'
useQuery(queryKey, queryFn, { suspense: true })
```

When using suspense mode, `status` states and `error` objects are not needed and are then replaced by usage of the `React.Suspense` component (including the use of the `fallback` prop and React error boundaries for catching errors). Please read the [Resetting Error Boundaries](#resetting-error-boundaries) and look at the [Suspense Example](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/suspense) for more information on how to set up suspense mode.
When using suspense mode, `status` states and `error` objects are not needed and are then replaced by usage of the `React.Suspense` component (including the use of the `fallback` prop and React error boundaries for catching errors). Please read the [Resetting Error Boundaries](#resetting-error-boundaries) and look at the [Suspense Example](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/suspense) for more information on how to set up suspense mode.

In addition to queries behaving differently in suspense mode, mutations also behave a bit differently. By default, instead of supplying the `error` variable when a mutation fails, it will be thrown during the next render of the component it's used in and propagate to the nearest error boundary, similar to query errors. If you wish to disable this, you can set the `useErrorBoundary` option to `false`. If you wish that errors are not thrown at all, you can set the `throwOnError` option to `false` as well!

Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ const Home = ({ sponsors }) => {
<section className="bg-gray-900 body-font">
<div className="container max-w-7xl px-4 mx-auto -mt-72 relative">
<iframe
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/master/examples/basic?autoresize=1&fontsize=16&theme=dark"
src="https://codesandbox.io/embed/github/tannerlinsley/react-query/tree/main/examples/basic?autoresize=1&fontsize=16&theme=dark"
title="tannerlinsley/react-query: basic"
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
className="shadow-2xl"
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ On a more technical note, React Query will likely:

In the example below, you can see React Query in its most basic and simple form being used to fetch the GitHub stats for the React Query GitHub project itself:

[Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/simple)
[Open in CodeSandbox](https://codesandbox.io/s/github/tannerlinsley/react-query/tree/main/examples/simple)

```js
import { QueryClient, QueryClientProvider, useQuery } from 'react-query'
Expand Down

0 comments on commit 3ebf0d4

Please sign in to comment.