TanStackT
TanStack14mo ago
16 replies
sad-indigo

Blank page after navigating

I have a piece of code here that works in TanStack Router, but not in TanStack Start.
  const createContact = useServerFn(createContactFn)

  const handleOnSubmit = async (e: FormEvent<HTMLFormElement>) => {
    e.preventDefault();
    const contact = await createContact();
    await navigate({
      to: `/contacts/${contact.id}/edit`,
    });
  };

It goes white page after navigating. I have to hard reload the browser in order to see the content.
Was this page helpful?