-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add increment and add operations to NumberSignal (#2694)
* refactor(react-signals): base changes * refactor(react-signals): use event creators * refactor(react-signals): fix protected methods * refactor(react-signals): implement `update` method * introduce generic ValueSignal type * add tests for ValueSignal * support having arbitrary types in StateEvent * fix test * Add tests for ValueSignal * Add tests for ValueSignal conditional replace * add tests for ValueSignal.ts * add TSDocs for ValueSignal.ts * expose OperationSubscription in index.ts * more detailed tests for update function * Allow null as initial and future values * override get/set for NumberSignal * adapt signal generator plugin to assume null as default value * enable signal generator plugin to generate ValueSignal services * fix tests * rollback changes for accepting null in ValueSignal * fix typo in log message * fix IT according to 0 being the client-side default for NumberSignal * feat: add increment and add operations to NumberSignal Fixes #2622 * adjust tests utils subscription to have onDisconnet --------- Co-authored-by: Vlad Rindevich <[email protected]>
- Loading branch information
Showing
4 changed files
with
272 additions
and
37 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