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

setState error on unmounted component #18

Open
cyberwombat opened this issue Nov 3, 2016 · 3 comments
Open

setState error on unmounted component #18

cyberwombat opened this issue Nov 3, 2016 · 3 comments

Comments

@cyberwombat
Copy link

If I add say just the AudioPlayer on my page (from the sample) then navigate away from the page and come back I am getting an error:

  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 Media component.

I hope you can reproduce. I am chopping code up a little bit trying to work on SSR so maybe I broke something :)

@souporserious
Copy link
Owner

Sorry, I'm just now getting to this 😞 Did you ever have any luck with this?

@kerosan
Copy link

kerosan commented Feb 26, 2017

`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 Media component.
printWarning @ warning.js:36
warning @ warning.js:60
getInternalInstanceReadyForUpdate @ ReactUpdateQueue.js:48
enqueueSetState @ ReactUpdateQueue.js:200
ReactComponent.setState @ ReactComponent.js:63
events.(anonymous function) @ Media.js:216
HTML5._this._handleTimeUpdate @ HTML5.js:80

Media.js:135
Uncaught TypeError: Cannot read property 'setVolume' of null
at Object.Media._this.setVolume (Media.js:135)
at Object.Player._this._handleOnReady [as onReady] (Player.js:61)
at HTMLAudioElement.HTML5._this._handleCanPlay (HTML5.js:50)
Media._this.setVolume @ Media.js:135
Player._this._handleOnReady @ Player.js:61
HTML5._this._handleCanPlay @ HTML5.js:50

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 Media component.`

@souporserious
Copy link
Owner

@alukard1986 sorry about that :/ I'm currently working on a new version and trying to fix all outstanding issues. You can follow the progress here.

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

No branches or pull requests

3 participants