You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Next.js and rendering a dynamic route segment that accepts an array of paths, it is not possible to create a story with those segment parameters. Only strings are accepted. Thus any components using arrays in useParams can not be rendered.
However this is not the accepted behaviour since this is a commonly used Next.js feature.
There is no other way to pass an array or it is not mentioned in the documentation.
Describe the bug
When using Next.js and rendering a dynamic route segment that accepts an array of paths, it is not possible to create a story with those segment parameters. Only strings are accepted. Thus any components using arrays in useParams can not be rendered.
However this is not the accepted behaviour since this is a commonly used Next.js feature.
There is no other way to pass an array or it is not mentioned in the documentation.
Reproduction link
https://stackblitz.com/edit/github-zr1szmtq?file=src%2Fstories%2Ftest.stories.tsx
Reproduction steps
System
Additional context
No response
The text was updated successfully, but these errors were encountered: