Troubleshooting

Common issues and solutions

Tip

Check out the list of known issues and solutions.

Pages router

Because the Next.js pages router is not available in an SSR context, this hook will always return null (or the default value if supplied) on SSR/SSG.

This limitation doesn’t apply to the app router.

On this page