Skip to content

Commit

Permalink
hack to remove lag
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierM committed Oct 15, 2019
1 parent fe9c560 commit 3d4298d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ const DraggableWrapperComponent = React.memo<Props>(
({ dataProvider, registerProvider, render, truncate, unRegisterProvider }) => {
const usePortal = useDraggablePortalContext();

useEffect(() => {
registerProvider!({ provider: dataProvider });
return () => {
unRegisterProvider!({ id: dataProvider.id });
};
}, []);
// useEffect(() => {
// registerProvider!({ provider: dataProvider });
// return () => {
// unRegisterProvider!({ id: dataProvider.id });
// };
// }, []);

return (
<Wrapper data-test-subj="draggableWrapperDiv">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const SearchBarComponent = memo<SiemSearchBarProps & SiemSearchBarRedux & SiemSe
}
}

updateSearch(updateSearchBar);
window.setTimeout(() => updateSearch(updateSearchBar), 0);
};

const onRefresh = (payload: { dateRange: TimeRange }) => {
Expand Down

0 comments on commit 3d4298d

Please sign in to comment.