-
Notifications
You must be signed in to change notification settings - Fork 16
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
WIP: Explore runSaga #777
base: main
Are you sure you want to change the base?
WIP: Explore runSaga #777
Conversation
|
6c7ba4c
to
cb98064
Compare
cb98064
to
592e8cb
Compare
06dcd13
to
67429ed
Compare
9b26657
to
da62485
Compare
Rebased on |
while (true) { | ||
/** | ||
* Wait for an initAction to start | ||
*/ | ||
const action = yield take([initAction.type, reauthAction.type]) | ||
getLogger().info('RootSaga WAIT INIT') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comments
logger.info('swStore >> Init Store?') | ||
}, | ||
start: (rootSaga: Saga, options: any) => { | ||
logger.info('swStore >> Start') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reduce logs
* EventEmitter for each instance of a component * remove branch from the main workflow * add changeset * add dev branch to workflow * add dev branch to ci/cd
* Calling worker to fork call workers * hanlde calling.call.state events * handle calling.call.dial event and move dial function to the client * fix answer() promise * handle calling.call.collect event * hanlde calling.call.send_digits event * handle calling.call.detect event * handle calling.call.tap event * handle calling.call.prompt event * handle calling.call.connect event * override on, once, and off functions for the Call * replace _on with on in e2e test cases * include changeset * fix playback event for prompt * fix call.detect event with internal sdk worker * unit test cases fix * rebased with the dev * replace overriden functions * fix instanceMap arg --------- Co-authored-by: edolix <[email protected]>
* Cleanup emitter transform for Voice Call APIs * include changeset
* Use base event emitter for Message API * emitter transform remove and changeset include * ApplyEventListeners comment update
* base emitter for chat and pubsub api * changeset included * improve pubsub and chat worker initializing * fix chat and pubsub e2e js case * improve chat and pubsub e2e js case * SDK child worker type fix * type issues fix for sub workers * more debug * more debug in voiceCallPlayWorker * update payload from voiceCallDialWorker * run only voice test for now * override event listeners for call instances * fix node script * fix voiceCallConnectWorker bug * fix test cases for playback and recording --------- Co-authored-by: edolix <[email protected]>
d2bd2d0
to
7b0b22d
Compare
@@ -33,7 +33,7 @@ | |||
"start:web": "sw-build --dev --web", | |||
"start:node": "sw-build --dev --node --watchFormat=cjs", | |||
"build": "tsc --project tsconfig.build.json && sw-build --web && sw-build --node", | |||
"test": "NODE_ENV=test jest --detectOpenHandles --forceExit", | |||
"test": "NODE_ENV=test jest", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just trying to understand, why have we removed the --detectOpenHandles
. Shouldn't we keep it to observe if Jest exits cleanly?
dispatch(action: AnyAction) { | ||
logger.info('swStore >> Dispatch', action) | ||
|
||
// Process the action within reducers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can add a TODO for future reference to move this logic to a reducer.
init: () => { | ||
logger.info('swStore >> Init Store?') | ||
}, | ||
start: (rootSaga: Saga, options: any) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -124,17 +108,26 @@ const configureStore = (options: ConfigureStoreOptions) => { | |||
remove: deleteInstance, | |||
}, | |||
}) | |||
|
|||
// return sagaMiddleware.run(saga, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to remove these comments related to the old middleware logic?
2703f14
to
bbe5b55
Compare
No description provided.