-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add queues * fix some tests * comment out broken tests * remove unused commented code * remove TODO * comment out one more test because it is failing * fix one test * fix one more test * fix one more test * fix one more test * remove commented code * fix bind-backend-proxy test by adding setQueue method * fix one more test * use setQueue inside base-server * add type for onActions callback * add type and docs for setQueue * add types and docs for #type and #channel * fix pnpm-lock * remove eslint-disable-no-console * change test delay * change test delay * change test delay * fix test * always unbind error if processed * fix tests, add test * add test * make sure that all actions are processed before destroy * import actionsCallback type from core * add test that checks channel regex * add test that checks channel pattern * add test to check that error in one queue does not affect another queue * add test: "undoes all other actions in a queue if some action should be undone" * add test that checks setQueue method * remove empty queues from the map * replace ignoreDestroying with actionsInQueue set * update onActions * check for duplicate meta.id * rename onActions to onSync * refactor (rename, simplify code), use VladBrok/core * optimize by binding single event listeners for all queues instead of for each action * adjust logic when queue is undefined * add test to check that an action with same ID is not added to the queue * Update base-server/index.js Co-authored-by: Andrey Sitnik <[email protected]> * Update base-server/index.js Co-authored-by: Andrey Sitnik <[email protected]> * Update base-server/index.js Co-authored-by: Andrey Sitnik <[email protected]> * code style fix * fix lint error * fix missing queue * use updated onSync api that allows to call access in a queue * update VladBrok/core * fix test * fix test * use only action.id in on(processed) for queues, fix destroying logic * remove setQueue, change tests accordingly * check action.type before checking action.id * rename onSync to onReceive --------- Co-authored-by: Andrey Sitnik <[email protected]>
- Loading branch information
Showing
7 changed files
with
747 additions
and
97 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
Oops, something went wrong.