-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor saveEntityRecord from redux-rungen to async thunks (#33201)
* Migrate saveEntityRecord to thunks * Adjust ifNotResolved tests * Adjust the integration tests * Adjust args to select() * Refactor functions depending on saveEditedEntityRecord to thunks * Lint * Adjust saveEntityRecord to deal with async calls instead of generators * Call dispatch.saveEntityRecord instead of dispatch( saveEntityRecord ) * Remove async/await from saveEditedEntityRecord and __experimentalSaveSpecifiedEntityEdits * Make ifNotResolved return an enhanced resolver returning a promise and add a test case for that * Quality-of-life refactor of __unstableFetch from if to a default argument * Adjust the second instance of __unstableFetch * Adjust the documentation of __unstableFetch to clarify it must be a promise, not a control descriptor * Remove a commented line
- Loading branch information
Showing
8 changed files
with
275 additions
and
232 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
Oops, something went wrong.