Browse Source

Disable wdyr in components

develop
Apostolos Fanakis 4 years ago
parent
commit
28f7006f92
  1. 2
      packages/concordia-app/src/components/TopicList/TopicListRow/index.jsx
  2. 2
      packages/concordia-app/src/components/TopicList/index.jsx
  3. 2
      packages/concordia-app/src/views/Home/Board/index.jsx
  4. 2
      packages/concordia-app/src/views/Home/index.jsx
  5. 2
      packages/concordia-app/src/views/Topic/index.jsx

2
packages/concordia-app/src/components/TopicList/TopicListRow/index.jsx

@ -117,6 +117,4 @@ TopicListRow.propTypes = {
loading: PropTypes.bool, loading: PropTypes.bool,
}; };
TopicListRow.whyDidYouRender = true;
export default memo(TopicListRow); export default memo(TopicListRow);

2
packages/concordia-app/src/components/TopicList/index.jsx

@ -60,6 +60,4 @@ TopicList.propTypes = {
topicIds: PropTypes.arrayOf(PropTypes.number).isRequired, topicIds: PropTypes.arrayOf(PropTypes.number).isRequired,
}; };
TopicList.whyDidYouRender = true;
export default TopicList; export default TopicList;

2
packages/concordia-app/src/views/Home/Board/index.jsx

@ -46,6 +46,4 @@ Board.propTypes = {
numberOfTopics: PropTypes.number.isRequired, numberOfTopics: PropTypes.number.isRequired,
}; };
Board.whyDidYouRender = true;
export default Board; export default Board;

2
packages/concordia-app/src/views/Home/index.jsx

@ -29,6 +29,4 @@ const Home = () => {
), [numberOfTopics]); ), [numberOfTopics]);
}; };
Home.whyDidYouRender = true;
export default memo(Home); export default memo(Home);

2
packages/concordia-app/src/views/Topic/index.jsx

@ -16,6 +16,4 @@ const Topic = () => {
); );
}; };
Topic.whyDidYouRender = true;
export default Topic; export default Topic;

Loading…
Cancel
Save