Skip to content

Commit

Permalink
Update Next.js runtime library imports (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
junlarsen authored Jun 24, 2024
1 parent b4d67c1 commit a16321a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/website/docs/nextjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ You could solve it by setting [Providers](/docs/providers).

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

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

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

export default {
Expand Down

0 comments on commit a16321a

Please sign in to comment.