Relative Content

Tag Archive for reactjsnext.jsnext.js13nextjs14

NextJs recreates server component when changing state in client component

I have a server component that calls an API and fetches some data. It passes data to some server components and to a client component as well. The client component renders some jsx and whenever a tab is clicked an API is called again which changes the state and update UI. The problem is it recreates the server component as well.