-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/make reduce synchronous (#18)
* fix race condition fix race condition when tying a Bloc lifecycle to the ViewModel lifecycle * some library updates * Duplicate send fun in Bloc duplicate send function in Bloc so it uses an Action instead of a Proposal argument * Make reduce synchronous * delete obsolete class ReducerContainer * Revert "delete obsolete class ReducerContainer" This reverts commit d1a8324. * Revert "Make reduce synchronous" This reverts commit 8201b7b. * dispatch is synchronous now in thunks and initializers calling dispatch now synchronously triggers the reducers the reducers are still added to the reducer queue but the thunk/initializer executing is suspended till the reducer has finished * Improve documentation for the different contexts * Improve side effect tests * Side effect test with reducer and thunk * Improve lifecycle tests * improve initializer tests * Add test for dispatch and reduce in initializer * Improve thunk tests * reduce was only partly running blocking when triggered from thunks and initializers * Update the documentation * Create new version --------- Co-authored-by: Emanuel Moecklin <emanuel.moecklin@vivint.com>
- Loading branch information
Showing
30 changed files
with
714 additions
and
353 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
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.