Declaring custom rollback behavior
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.9k
- Forks
- 266
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 55
Description
Tanstack DB rolls back the change by default if it fails. Two questions:
- Can I override the rollback and declare my own custom behavior?
- 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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, test, or entry point is named in the issue. Start by locating TanStack DB's optimistic update and rollback handling, then clarify whether a rollback hook and a post-redirect notification mechanism are required; done should cover both custom rollback behavior and user notification after a failed edit.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100