Skip to content

Commit 33dcf8f

Browse files
authored
Fix import paths in swr-openapi docs (#2233)
* Update use-immutable.md * Update use-infinite.md
1 parent 37d1c53 commit 33dcf8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/swr-openapi/use-immutable.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This hook has the same contracts as [`useQuery`](./use-query.md). However, inste
88

99
```ts
1010
import createClient from "openapi-fetch";
11-
import { createQueryHook } from "swr-openapi";
11+
import { createImmutableHook } from "swr-openapi";
1212
import type { paths } from "./my-schema";
1313

1414
const useImmutable = createImmutableHook(client, "my-api");

docs/swr-openapi/use-infinite.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This hook is a typed wrapper over [`useSWRInfinite`][swr-infinite].
88

99
```ts
1010
import createClient from "openapi-fetch";
11-
import { createQueryHook } from "swr-openapi";
11+
import { createInfiniteHook } from "swr-openapi";
1212
import type { paths } from "./my-schema";
1313

1414
const client = createClient<paths>(/* ... */);

0 commit comments

Comments
 (0)