mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
Remove component state initialization
The state initialization is performed when the component goes into submittin mode. However, after the form is submitted, the component unmounts and the state is destroyed.
This commit is contained in:
parent
7c7acb4475
commit
dee98675a9
1 changed files with 0 additions and 3 deletions
|
|
@ -113,9 +113,6 @@ class StripePaymentForm extends Component {
|
|||
}
|
||||
});
|
||||
}
|
||||
componentWillReceiveProps() {
|
||||
this.setState(initialState);
|
||||
}
|
||||
componentWillUnmount() {
|
||||
if (this.card) {
|
||||
this.card.removeEventListener('change', this.handleCardValueChange);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue