From 1fcaee2cd4453e214b51f0c74ad3f4481d5c4e9e Mon Sep 17 00:00:00 2001 From: Bob Zeleznik Date: Tue, 31 Mar 2020 15:39:44 -0400 Subject: can't pass along ...props to DocumentContentsView -- that passes along props that change and cause unnecessary re-renders --- src/client/views/nodes/DocumentView.tsx | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'src/client/views/nodes/DocumentView.tsx') diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 1dee25c51..15fd07786 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -962,7 +962,29 @@ export class DocumentView extends DocComponent(Docu childScaling = () => (this.layoutDoc._fitWidth ? this.props.PanelWidth() / this.nativeWidth : this.props.ContentScaling()); @computed get contents() { TraceMobx(); - return (