mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
clean up
This commit is contained in:
parent
e6e97a8de1
commit
ff152555b2
@ -94,7 +94,6 @@ export default class PostsFeed extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
insert = async (data) => {
|
insert = async (data) => {
|
||||||
// insert at the top, but without firing react lifecycle
|
|
||||||
await this.setState({
|
await this.setState({
|
||||||
renderList: [this.getPostRender(data), ...this.state.renderList],
|
renderList: [this.getPostRender(data), ...this.state.renderList],
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user