mirror of
https://github.com/appy-one/acebase-core.git
synced 2026-05-24 22:01:23 -06:00
[PR #51] [MERGED] Add shouldRollback option to DataProxy #51
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase-core#51
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/appy-one/acebase-core/pull/51
Author: @appy-one
Created: 3/27/2025
Status: ✅ Merged
Merged: 3/28/2025
Merged by: @appy-one
Base:
master← Head:feature/allow-preventing-rolling-back-failed-updates📝 Commits (2)
539ba78AddbeforeRollbackoption toDataProxythat can prevent rolling back a failed update attempt. The callback function can decide to cancel the rollback. This is useful if a client with local cache database is used and the server encountered a server/processing error: a pending mutation will have been saved and retried later.cb81ac3Rename toshouldRollback, allow async, correct documentation that only returningfalsewill prevent rollback📊 Changes
1 file changed (+19 additions, -5 deletions)
View changed files
📝
src/data-proxy.ts(+19 -5)📄 Description
Add
shouldRollbackoption toDataProxythat can prevent rolling back a failed update attempt. The callback function can decide to cancel the rollback. This is useful if a client with local cache database is used and the server encountered a server/processing error: a pending mutation will have been saved and retried later.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.