Skip to content

Commit

Permalink
query
Browse files Browse the repository at this point in the history
  • Loading branch information
hazae41 committed Oct 26, 2022
1 parent cc49f72 commit aec344d
Show file tree
Hide file tree
Showing 31 changed files with 61 additions and 61 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async function fetchAsJson<T>(url: string) {

### Create a mix 🌪

Then create a mix using a handle and some blocks.
Then create a mix using a query and some blocks.

```tsx
function useHello() {
Expand Down Expand Up @@ -120,7 +120,7 @@ Last example was good, but here is the best way to use XSWR.
Our fetcher was good, but this one can be aborted.

```tsx
async function fetchAsJson<T>(url: string, more: XSWR.FetcherMore<T>) {
async function fetchAsJson<T>(url: string, more: FetcherMore<T>) {
const { signal } = more

const res = await fetch(url, { signal })
Expand Down Expand Up @@ -167,9 +167,9 @@ Once you got a schema and a mixture, you just have to mix it.

```tsx
function useHelloMix() {
const handle = useQuery(getHelloSchema, [])
useAutoFetchMixture(handle)
return handle
const query = useQuery(getHelloSchema, [])
useAutoFetchMixture(query)
return query
}
```

Expand Down
10 changes: 5 additions & 5 deletions dist/cjs/mods/react/hooks/blocks/use-debug.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/mods/react/hooks/blocks/use-debug.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/cjs/mods/react/hooks/queries/scroll.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/mods/react/hooks/queries/scroll.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/cjs/mods/react/hooks/queries/single.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/mods/react/hooks/queries/single.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/mods/scroll/instance.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/mods/scroll/instance.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/mods/single/instance.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/mods/single/instance.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/mjs/mods/react/hooks/blocks/use-debug.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/mjs/mods/react/hooks/blocks/use-debug.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/mjs/mods/react/hooks/queries/scroll.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit aec344d

Please sign in to comment.