diff --git a/docs/swr-openapi/use-immutable.md b/docs/swr-openapi/use-immutable.md index c28cc4a31..e5ce5254a 100644 --- a/docs/swr-openapi/use-immutable.md +++ b/docs/swr-openapi/use-immutable.md @@ -8,7 +8,7 @@ This hook has the same contracts as [`useQuery`](./use-query.md). However, inste ```ts import createClient from "openapi-fetch"; -import { createQueryHook } from "swr-openapi"; +import { createImmutableHook } from "swr-openapi"; import type { paths } from "./my-schema"; const useImmutable = createImmutableHook(client, "my-api"); diff --git a/docs/swr-openapi/use-infinite.md b/docs/swr-openapi/use-infinite.md index 9fb30d536..c014082da 100644 --- a/docs/swr-openapi/use-infinite.md +++ b/docs/swr-openapi/use-infinite.md @@ -8,7 +8,7 @@ This hook is a typed wrapper over [`useSWRInfinite`][swr-infinite]. ```ts import createClient from "openapi-fetch"; -import { createQueryHook } from "swr-openapi"; +import { createInfiniteHook } from "swr-openapi"; import type { paths } from "./my-schema"; const client = createClient(/* ... */);