Never reject with undefined #85
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MichaelContento/redux-storage!85
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-1"
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?
That's like
throwing undefined, there is no context and it's impossible for users to be aware of what happened.Even doing something simple like rejecting with an
Errorhelps here.I'm not sure what's the point of even rejecting here semantically (vs. not fulfilling) - it doesn't make a lot of sense and introduces abort and control at a distance semantics which are highly discouraged when using promises.
Cheers and thanks for the library.
Thank you for this PR! Would it be possible for you to fix the CI? As I'd really like to merge this 😃
Yup, sorry. Should have looked at the tests.