Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uncaught error when dataProvider fails on undoable forms #5781

Merged

Conversation

fzaninotto
Copy link
Member

@fzaninotto fzaninotto commented Jan 14, 2021

Closes #5685

This was introduced in #4291, where I used the same code for optimistic and non-optimistic calls. If it make sense to re-throw the error in non-optimistic mode (so that the dataProvider promise rejects), it doesn't make sense in optimistic mode, as the dataProvider promise already resolved. So the error mustn't be rethrown in optimistic mode.

@fzaninotto fzaninotto added the RFR Ready For Review label Jan 14, 2021
@djhi djhi added this to the 3.11.3 milestone Jan 15, 2021
@djhi djhi merged commit 5d10a04 into master Jan 15, 2021
@djhi djhi deleted the Fix-uncaught-error-on-dataProvider-failure-in-undoable-edit branch January 15, 2021 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unhandled rejection (HttpError) on Edit, optimistic rendering - undoable true
2 participants