mirror of
https://github.com/appy-one/acebase-client.git
synced 2026-05-24 22:01:18 -06:00
[PR #67] [MERGED] Add network/server related error codes to isNetworkError getter, add isPermissionError #57
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase-client#57
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-client/pull/67
Author: @appy-one
Created: 3/27/2025
Status: ✅ Merged
Merged: 3/28/2025
Merged by: @appy-one
Base:
master← Head:improvement/handle-network-related-errors📝 Commits (3)
d0dd6cdAdd network/server related error codes toisNetworkErrorgetter, addisPermissionError4ee1d54Includeresponse.statusCodeinisNetworkErrorcheckcb01191LetisPermissionErroralso checkresponse.statusCode📊 Changes
1 file changed (+14 additions, -9 deletions)
View changed files
📝
src/request/error.ts(+14 -9)📄 Description
This causes the client to store a pending mutation to the cache database if it possible to retry the operation because of network issues and/or temporary server processing errors. This also allows other code to decide if a mutation should be rolled back or not.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.