路由跳轉后會有setState報錯
點擊“我的私人音樂坊”跳轉到歌曲列表頁面,路由跳轉沒問題,但是在控制臺會有setState的報錯“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 Player component.”
2018-03-06
componentWillUnMount 解綁的是組件,不能是音樂的那個解綁,把講師講的最后音樂解綁那個去掉,只能都是
Pubsub的