Improve performance of compose form
This commit is contained in:
parent
5997bb47a8
commit
974d712fbe
10 changed files with 180 additions and 110 deletions
|
@ -54,12 +54,12 @@ const mapDispatchToProps = (dispatch, { type, id }) => ({
|
|||
dispatch(expandTimeline(type, id));
|
||||
},
|
||||
|
||||
@debounce(300)
|
||||
@debounce(100)
|
||||
onScrollToTop () {
|
||||
dispatch(scrollTopTimeline(type, true));
|
||||
},
|
||||
|
||||
@debounce(500)
|
||||
@debounce(100)
|
||||
onScroll () {
|
||||
dispatch(scrollTopTimeline(type, false));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue