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
The documentation for @unitools/router incorrectly shows useRouter as a default export. However, in the latest version, useRouter is a named export. This discrepancy is causing confusion and errors.
Description
The documentation for
@unitools/router
incorrectly showsuseRouter
as a default export. However, in the latest version,useRouter
is a named export. This discrepancy is causing confusion and errors.Steps to Reproduce
useRouter
as a default export:useRouter
hook in a component.Expected Behavior
The
useRouter
hook should be imported and used without any errors.Actual Behavior
The following error is thrown:
Additional Information
Here is the correct way to import
useRouter
:Environment
@unitools/router
version: 0.0.6The text was updated successfully, but these errors were encountered: