mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-18 06:54:15 +00:00
check changes on states
This commit is contained in:
parent
6f72701106
commit
66a7395ea4
@ -56,7 +56,9 @@ export class WithPlayerContext extends React.Component {
|
|||||||
|
|
||||||
events = {
|
events = {
|
||||||
"player.state.update": async (state) => {
|
"player.state.update": async (state) => {
|
||||||
this.setState(state)
|
if (state !== this.state) {
|
||||||
|
this.setState(state)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user