How to refresh routes in next js 14 app router?
I am trying to get my nextjs app to refresh routes after a form submits, so that i can update data on the page, without refreshing the browser.
How to refresh routes in next js 14 app router?
I am trying to get my nextjs app to refresh routes after a form submits, so that i can update data on the page, without refreshing the browser.
Unable to exporting metadata object from Next.js layout.js file
I am trying to add the metadata object in my layout.js file. Hovever, I get the error “You are attempting to export “metadata” from a component marked with “use client”, which is disallowed.”, this seems weird because there is no “use client” in the file. I use Next.js(14.2.3) App router. I have checked the documentation but i have not been able to find a solution. I also delete the cache files, but still did not work.