Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
84.82k
stars
9.34k
forks
source link
[Bug]: next-usequerystate/nuqs "invariant expected app router to be mounted" #25612
Closed
isBatak closed 10 months ago
Describe the bug
next-usequerystate/nuqs lib is using
next/navigation
and it can be used in bothapp
andpages
folder. https://github.com/47ng/nuqs/blob/f0f6de78950e0dca987d94533b99ebb8f745f4e9/packages/nuqs/src/useQueryState.ts#L1Components that uses
useQueryState
insidepages
folder are not working in storybook.To Reproduce
CodeSandbox Link
System
Additional context
Related issue on next-usequerystate repo https://github.com/47ng/nuqs/issues/460