Skip to content

double request aftar form submission #37

@akhfasarrofi

Description

@akhfasarrofi

hi, i got a problem if toast is set to loader in root.tsx file there is double request after submit

example code

export function action() {
  return redirectWithToast('/sign-in', { message: 'User created successfully', type: 'success' }, {
    status: 201,
  })
}

export default function SignUp() {
  return (
    <Form
      className="flex flex-col gap-4"
      method="POST"
    >
      <Button type="submit">Test</Button>
    </Form>
  )
}
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions