Skip to content

Commit

Permalink
fix: remove extra parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashutosh-Bhadauriya committed Aug 18, 2023
1 parent 7a18b45 commit 94d6e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/guides/next.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default function LoginPage() {

The register function tries to set up the `<hanko-auth>` element for the browser. But, Next.js pre-renders pages before displaying them. Since it doesn't have access to the browser's `window` object during this pre-render phase, the registration of the custom element would fail.

To fix this, we can use Next.js's [dynamic import]((https://nextjs.org/docs/advanced-features/dynamic-import)) to load our component only when it's displayed on the client-side and skip the pre-creation step.
To fix this, we can use Next.js's [dynamic import](https://nextjs.org/docs/advanced-features/dynamic-import) to load our component only when it's displayed on the client-side and skip the pre-creation step.
:::
```mdx-code-block
</TabItem>
Expand Down

0 comments on commit 94d6e21

Please sign in to comment.