Skip to content

Can't catch thrown 'FLOW_CANCELED' anywhere #2790

@DMS40

Description

@DMS40

Intended outcome:

This issue came from here

When flow function's cancel() fired, Can't catch thrown 'FLOW_CANCELED' anywhere

image

Actual outcome:

Can catch the flow function's cancel() fired, for don't want to show throw error message

This also interferes with the integrated test. like for react-testing-library

How to reproduce the issue:

https://codesandbox.io/s/magical-hugle-qc0d1?file=/src/App.js

Versions
mobx : 6.1.5
mobx-react-lite : 3.2.0
react : 17.0.1
react-dom : 17.0.1
react-scripts : 4.0.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions