How to update and display server-side data in a table with pagination using useActionState in Next.js?
I am using useActionState
to trigger a server-side action fetchPeople
for form submission. Outside of the form, there is a table with pagination where I display the data returned from the server.
How to pass data from layout.js to children components in Nextjs
A NextJs newbie here I was exploring App router in Next 14 and was wonder weather is there any way to pass data from layout.js to it’s children without making it client component.
NextJs 14 Server Components with Browser Navigation
I ran into a bit of an issue today and I need your help to figure out what the best approach is to solving browser navigation (user clicks browsers back/forward button) when using server components.
Redirecting from a server component in NextJS
In my NextJS project, I have a route (“/dashboard”) which is a server component and from that I want to make user redirect to home page (“/”) based on some conditions but I am not getting success.
Server side refresh token
General question is not framework specific, but for context, I use nextjs v14 with app router and .NET API. For auth, I set cookies for access token and refresh token. Refresh token has path set to /auth/refresh-token
.
Accessing Context API From Client Side to Server Side Component In NextJS CREATES MULTI FETCH
I’ve tried to make a SSR component which fetches GET with token in headers. As I don’t have the access of ContextAPI/Web Storage APIs, I was trying to get that from a client component as a prop.