Skip to content

Commit eedf5b2

Browse files
committed
Update Next.js runtime library imports
1 parent b4d67c1 commit eedf5b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/website/docs/nextjs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ You could solve it by setting [Providers](/docs/providers).
5151

5252
```tsx title=".ladle/components.tsx"
5353
import { GlobalProvider } from "@ladle/react";
54-
import { AppRouterContext } from "next/dist/shared/lib/app-router-context";
54+
import { AppRouterContext } from "next/dist/shared/lib/app-router-context.shared-runtime";
5555

5656
export const Provider: GlobalProvider = ({ children }) => {
5757
return (
@@ -87,7 +87,7 @@ Or if you want to set it in each file, you could use [Decorators](/docs/decorato
8787

8888
```tsx title="./Hello.stories.tsx"
8989
import type { StoryDefault, Story } from "@ladle/react";
90-
import { AppRouterContext } from "next/dist/shared/lib/app-router-context";
90+
import { AppRouterContext } from "next/dist/shared/lib/app-router-context.shared-runtime";
9191
import { useRouter } from "next/navigation";
9292

9393
export default {

0 commit comments

Comments
 (0)