javascript - waiting for run Saga middleware -
i have problem redux-saga in configurestore.js have :
sagamiddleware.run(mysaga);
i want code execute when saga returns something
if understand said if did not much, solution want actually:
reduxsagamiddleware return task:
middleware.run (saga, ... args)
dynamically run saga. can used run sagas after applymiddleware phase.
... method returns task descriptor.
from redux-saga
so have task.done return promise , can do:
task.done.then(() => { // code executed when saga finished });
Comments
Post a Comment