TanStackT
TanStack8mo ago
7 replies
wispy-olive

Form is somehow getting server rendered? RHF

Hi all,
Currently porting my Next JS app to Start but running into issues with my form component. When I console log form, it get's logged in the terminal. I'm assuming this may have to do with how my route is set up, but I'm not sure how to adjust.

I appreciate any advice.


route file
import { createFileRoute } from '@tanstack/react-router';
import CreateAnAccountForm from '../../components/feat/accounts/create-an-account/create-an-account-form';

export const Route = createFileRoute('/onboarding/')({
  component: RouteComponent,
});

function RouteComponent() {
  return (
    <div className="flex min-h-screen w-full flex-col items-center justify-center  p-4">
      <div className="mx-auto w-full max-w-md">
        <CreateAnAccountForm />
      </div>
    </div>
  );
}
Was this page helpful?