Closed cweiss-stripe closed 1 year ago
r? @tiff-stripe && @pololi-stripe
The cleanup order for effects in React is parent, then child..
This PR makes sure that we catch the error that gets emitted when a destroyed Embedded Checkout instance gets unmounted (we do something similar for Elements).
Unit test
r? @tiff-stripe && @pololi-stripe
Summary & motivation
The cleanup order for effects in React is parent, then child..
This PR makes sure that we catch the error that gets emitted when a destroyed Embedded Checkout instance gets unmounted (we do something similar for Elements).
Testing & documentation
Unit test