How to return promise for dispatch effects in dva1.x version

I am currently using version 1.x of dva, and do not support dispatch effects to handle callbacks with then. I would like to ask how to return promise in the existing version of effects if I do not upgrade to version 2.x.
I tried to directly return Promise.resolve in saga, but I couldn"t

Mar.16,2021

go up to 2.x.

Menu