-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(backend): add cancellable onBeforeSearchChange & revert on error
- this enhancement idea came from this [Discussion](#337) - in previous code, if an error happens on the backend server while querying, the search input values would still be changed and we had no clue of the previous value, this PR bring this functionality that if an error occurs it will rollback to previous filter input values. - this PR also adds the option to prevent bubbling of `onBeforeSearchChange` (a new event) to optionally cancel the search query (the search input value would still be applied because you can't cancel that part but you can call `filterService.resetToPreviousSearchFilters()` to rollback the last search)
- Loading branch information
1 parent
a96c3f2
commit b26a53d
Showing
10 changed files
with
211 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.