Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export function* waitForPairingSaga() {
- const task = yield fork(connectionSaga);
- while (true) {
- const action = yield take(DEVICE_CHANGED);
- console.log('waitForPairingSaga::', action);
- if (action.payload.ownerId) {
- task.cancel();
- return action.payload.ownerId;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement