-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
The following error appears using [email protected] when I am unmounting component which renders redux-form's <Field /> component only if the <Field /> has been previously focused. I know that it seems like problem with redux-form but when I switch back to [email protected] everything works fine.
warning.js:36 Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the Connect(ConnectedField) component.
Tested on OSX and [email protected] (64-bit) and [email protected] (12602.2.14.0.7)
How to reproduce
- Clone the repository
https://github.com/pilaas/react-redux-bug yarnnpm run start- Open browser
http://localhost:8080 - Open console and enter type
store.dispatch({type: 'SHOW_FORM'}); - Focus newly appeared input component
- Enter
store.dispatch({type: 'HIDE_FORM'});in console - Experience warning
markerikson
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working