Next.js Discord

Discord Forum

Why does my form show loading spinner whenever clicked?

Unanswered
Rhinelander posted this in #help-forum
Open in Discord
RhinelanderOP
As shown in the video it randomly starts loading. It is just normal code that i write everytime - basicly same as on shadcn - form component.


Spinner is just normal loading.tsx file
import { Loader2 } from "lucide-react";

export default function Loading() {
  return (
    <div className="flex h-full w-full items-center justify-center">
      <Loader2 className="h-8 w-8 animate-spin text-muted-foreground" />
    </div>
  );
}

0 Replies