Skip to content

Declaring custom rollback behavior #487

Description

@coryhouse

Tanstack DB rolls back the change by default if it fails. Two questions:

  1. Can I override the rollback and declare my own custom behavior?
  2. I'm redirecting to an index page after an optimistic edit. If the rollback occurs after the user has been redirected, how I can notify the user?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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