Skip to content
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

feat(dva-core): support e.preventDefault() in onError to prevent reject #1224

Merged
merged 1 commit into from
Sep 16, 2017

Conversation

sorrycc
Copy link
Member

@sorrycc sorrycc commented Sep 15, 2017

Close #1222

@sorrycc sorrycc merged commit f1ef7d6 into master Sep 16, 2017
@sorrycc sorrycc deleted the onError-preventDefault branch September 16, 2017 06:11
@ethanguo770
Copy link

when reject(false), using the call method will cause the exception to not be thrown.

      yield call(async () => {
        return Promise.reject(false);
      }, {});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dva2 onError 处理的异常仍然抛出
2 participants