refactored rerendering speed

This commit is contained in:
Fedor Katurov 2020-01-16 11:49:24 +07:00
parent b6bf317649
commit 69d1d749cf
32 changed files with 144 additions and 2045 deletions

View file

@ -32,7 +32,7 @@ type Props = {
editorSetDialogActive: typeof editorSetDialogActive;
};
const Component = (props: Props) => (
const AppUnconnected = (props: Props) => (
<div>
<Fills />
<UserPanel />
@ -72,6 +72,8 @@ const mapStateToProps = ({
set,
});
const mapDispatchToProps = dispatch =>
bindActionCreators({ editorHideRenderer, editorSetDialogActive }, dispatch);
export const App = connect(mapStateToProps, mapDispatchToProps)(hot(module)(Component));
const mapDispatchToProps = { editorHideRenderer, editorSetDialogActive };
const App = connect(mapStateToProps, mapDispatchToProps)(hot(module)(AppUnconnected));
export { App };