Closed adamsoderstrom closed 1 year ago
Consuming the useRouter hook in Storybook results in an error.
useRouter
In the image below, i consume the useRouter hook in the Hero.js block.
Hero.js
The stories render, but shouldn't necessarily implement the NextRouter functionality.
NextRouter
This is solved in this PR via the "Next.js router Addon", from Storybook.
Awesome @adamsoderstrom!! 🔥 I'll merge this into develop and create a release.
develop
Current Behavior
Consuming the
useRouter
hook in Storybook results in an error.In the image below, i consume the
useRouter
hook in theHero.js
block.Expected behavior
The stories render, but shouldn't necessarily implement the
NextRouter
functionality.This is solved in this PR via the "Next.js router Addon", from Storybook.