Brendan Neufeld
Brendan Neufeld
My problem is that this encourages people to use it and consequently, potentially, unnecessary re-renders happen. I only usually have a couple listeners in an app where window dims are...
Essentially on every resize the section and all of the sections children will rerender. I would highly discourage this type of default behaviour. If your section needs this it should...
Although it may not cause rerenders wouldn't it cause additional evaluations as props have changed? Not sure how expensive that is. Any who I think it encourages bad practice. I...
you are setting state on the root app component (on window resize!). if fed through props you will trigger the lifecycle for the sections and most likely the children. It...
You could have an action that dispatches on resize. https://github.com/cape-io/redux-windowsize interesting in seeing how it affects performance (especially if no sections > are using it). This has kinda been a...
mmmm. people can add it if they need it. juniors use this too much and it forces rerenders in places they don't expect. I always remove it. On Fri, Apr...