remove ws listeners

This commit is contained in:
SrGooglo 2025-03-25 23:02:52 +00:00
parent 94f0219b63
commit cc40fc7fcd

View File

@ -200,22 +200,6 @@ export default class PostCard extends React.PureComponent {
) )
} }
componentDidMount = () => {
app.cores.api.listenEvent(
`post.update.${this.state.data._id}`,
this.handleDataUpdate,
"posts",
)
}
componentWillUnmount = () => {
app.cores.api.unlistenEvent(
`post.update.${this.state.data._id}`,
this.handleDataUpdate,
"posts",
)
}
render() { render() {
return ( return (
<motion.article <motion.article