Next.js Discord

Discord Forum

Loading Stuck when using server action

Unanswered
Philippine Crocodile posted this in #help-forum
Open in Discord
Philippine CrocodileOP
I have loading global one. if I delete i can the data fine

when I refresh the page it is fine.

the problem when I use navlink to navigate from one page to another page


export default async function ClientPage({
  searchParams,
}: {
  searchParams: GetClientParams;
}) {
  
  const data = await listClients(searchParams);

  return (
    <>
      <Search />
      <ClientGrid data={data} />
    </>
  );
}

0 Replies