Skip to content

Help tracking down slow hot reload times #8354

Answered by mikeymop
mikeymop asked this question in Q&A
Discussion options

You must be logged in to vote

Upon further investigation it looks like when I made a change on one of the pages it reloads ALL of the source files in my project even those unrelated to the change I made.

Are we required to lazy load every single component in our application? Currently we only lazy load the 'pages' that our router points to. The Pages contain the components we manage and generally just have a div in them for positioning the content.

Fresh runs take about 10min and hot reloads take around 3 min.

EDIT:

Using React dev tools and 'why did I rerender' I ultimately discovered that the way I was passing props down the tree was causing these long reloads.

I was following a pattern where each component sits in …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@damianon
Comment options

@mikeymop
Comment options

@davestewart
Comment options

Answer selected by mikeymop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants