-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove additional
fetchError
prop from hook return object
This commit removes the `fetchError` prop from hook return object. Now the returned object is of type `SafeActionResult`. If an error gets thrown inside an action, and the `handleServerError` init option rethrows it, now the `execute`/`executeAsync` functions throw it inside the component, so the handling is up to the user.
- Loading branch information
Showing
3 changed files
with
13 additions
and
49 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