DEV Community

Rammoy123
Rammoy123

Posted on

In Next (v -14) App router, router.push does not allowing Href object rather than only string

I am working on a project where the many nested as well as dynamic routing is being used and choose the Next 14 App router (Upgraded from version 12.x). Now my requirement is sending data through router from a function and used 'Router.push()' from useRouter of next/navigation .

But i found that, here we can send href object through the Next/Link only. Is there any workaround solution to solve the problem.

Thank you in advance.
Image description
Image descriptionvance

Top comments (0)