From 28f7006f92daf2cf1ee6c8deabbb48f94dd84c75 Mon Sep 17 00:00:00 2001 From: Apostolof Date: Sat, 14 Nov 2020 20:00:15 +0200 Subject: [PATCH] Disable wdyr in components --- .../src/components/TopicList/TopicListRow/index.jsx | 2 -- packages/concordia-app/src/components/TopicList/index.jsx | 2 -- packages/concordia-app/src/views/Home/Board/index.jsx | 2 -- packages/concordia-app/src/views/Home/index.jsx | 2 -- packages/concordia-app/src/views/Topic/index.jsx | 2 -- 5 files changed, 10 deletions(-) diff --git a/packages/concordia-app/src/components/TopicList/TopicListRow/index.jsx b/packages/concordia-app/src/components/TopicList/TopicListRow/index.jsx index 7f83bc3..014baa9 100644 --- a/packages/concordia-app/src/components/TopicList/TopicListRow/index.jsx +++ b/packages/concordia-app/src/components/TopicList/TopicListRow/index.jsx @@ -117,6 +117,4 @@ TopicListRow.propTypes = { loading: PropTypes.bool, }; -TopicListRow.whyDidYouRender = true; - export default memo(TopicListRow); diff --git a/packages/concordia-app/src/components/TopicList/index.jsx b/packages/concordia-app/src/components/TopicList/index.jsx index 89786df..511ae2b 100644 --- a/packages/concordia-app/src/components/TopicList/index.jsx +++ b/packages/concordia-app/src/components/TopicList/index.jsx @@ -60,6 +60,4 @@ TopicList.propTypes = { topicIds: PropTypes.arrayOf(PropTypes.number).isRequired, }; -TopicList.whyDidYouRender = true; - export default TopicList; diff --git a/packages/concordia-app/src/views/Home/Board/index.jsx b/packages/concordia-app/src/views/Home/Board/index.jsx index 8f8814f..7a8b074 100644 --- a/packages/concordia-app/src/views/Home/Board/index.jsx +++ b/packages/concordia-app/src/views/Home/Board/index.jsx @@ -46,6 +46,4 @@ Board.propTypes = { numberOfTopics: PropTypes.number.isRequired, }; -Board.whyDidYouRender = true; - export default Board; diff --git a/packages/concordia-app/src/views/Home/index.jsx b/packages/concordia-app/src/views/Home/index.jsx index bb6d17c..ce9decf 100644 --- a/packages/concordia-app/src/views/Home/index.jsx +++ b/packages/concordia-app/src/views/Home/index.jsx @@ -29,6 +29,4 @@ const Home = () => { ), [numberOfTopics]); }; -Home.whyDidYouRender = true; - export default memo(Home); diff --git a/packages/concordia-app/src/views/Topic/index.jsx b/packages/concordia-app/src/views/Topic/index.jsx index 6770b05..0e1900f 100644 --- a/packages/concordia-app/src/views/Topic/index.jsx +++ b/packages/concordia-app/src/views/Topic/index.jsx @@ -16,6 +16,4 @@ const Topic = () => { ); }; -Topic.whyDidYouRender = true; - export default Topic;