We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
redux-saga allows just yielding a promise without a call effect, like
redux-saga
function* mySaga() { yield Promise.resolve() }
although this example could be wrapped in a call, there are some obscure use cases for this.
I'd suggest, defining a resolve function/macro, which the macro transform just deletes. The typing would be like
resolve
export function resolve<P>( promise: P, ): SagaGenerator<P extends Promise<infer RT> ? RT : P, never>
if this would be a welcome change and i remember and/or the need becomes more pressing, i'll submit a PR. (yes i know i've said that before 😛 )
The text was updated successfully, but these errors were encountered:
No branches or pull requests
redux-saga
allows just yielding a promise without a call effect, likealthough this example could be wrapped in a call, there are some obscure use cases for this.
I'd suggest, defining a
resolve
function/macro, which the macro transform just deletes. The typing would be likeif this would be a welcome change and i remember and/or the need becomes more pressing, i'll submit a PR. (yes i know i've said that before 😛 )
The text was updated successfully, but these errors were encountered: