-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Handle resolution errors in @wordpress/data #38669
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
ce74617
First stab at the FAIL_RESOLUTION meta action
adamziel f4dcd3a
Adjust hasStartedResolution
adamziel 12d9c34
Remove try/catch to see if it helps with e2e failures
adamziel 3637c5d
Adjust resolvers-cache-middleware to use the new state shape
adamziel 6635a8c
Add unit tests
adamziel 0fa1efe
Improve test coverage
adamziel 22a569c
make resolveSelect reject on failure
adamziel ef8fd08
Fix unit tests
adamziel ae16800
Replace LastResolution with just Resolution
adamziel 15b7cf6
Rename getResolutionFailure to getResolutionError
adamziel d35bab0
Use real timers in Jest tests
adamziel d992438
Simplify the reducer code
adamziel 468a343
Add a unit test for the falsy error case
adamziel e8ffe33
Add the missing selectorArgsToStateKey call
adamziel 5f6dc6a
Align doc strings
adamziel 37c4d2f
Denote that error may be of unknown type in the docstring
adamziel 4e32352
Explain that an error may be of unknown type
adamziel aa11187
Adjust typescript type hints
adamziel 4a28600
Fix tests, use the actual store to test selectors
adamziel afd54d0
Remove dev artifact
adamziel fed1275
Refactor isResolving to enum-based status
adamziel 07f4dbf
Rename e to error
adamziel 61612c8
Use undefined for an idle status so that getResolutionState can alway…
adamziel f37c02c
Code style: Inline the awaited statement in resolve() in tests
adamziel 9a6f520
Replace advanceTimersByTime with runAllTimers
adamziel 10f6af0
Update the documentation and condition formulation in the resolve-cac…
adamziel 1944699
Remove the undefined status type and only use the values actually ret…
adamziel cd78776
Simplify hasStartedResolution
adamziel 7ace315
Add a changelog entry
adamziel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.