You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is a huge issue with re-renders and loading time that is exacerbated by the large stacks of higher-order-components (HOCs) used to wrap regular components in order to provide props. Much of this hierarchy was laid out prior to the introduction of React Hooks, so the only way to provide most data was via props, where shared state needed to be "raised up" to the highest component in the hierarchy and then allowed to "trickle down". Coupled with overly complex model objects this caused a LOT of re-renders.
I have been working on extracting the logic currently in HOCs and moving that into custom hooks that can now be implemented exactly where they are needed instead of having to pass props down through multiple components. As well, I have been trying to separate our components into those that are primarily presentational (JSX) versus those that are functional and process/retrieve data.
The text was updated successfully, but these errors were encountered:
Issue Overview
Currently there is a huge issue with re-renders and loading time that is exacerbated by the large stacks of higher-order-components (HOCs) used to wrap regular components in order to provide props. Much of this hierarchy was laid out prior to the introduction of React Hooks, so the only way to provide most data was via props, where shared state needed to be "raised up" to the highest component in the hierarchy and then allowed to "trickle down". Coupled with overly complex model objects this caused a LOT of re-renders.
I have been working on extracting the logic currently in HOCs and moving that into custom hooks that can now be implemented exactly where they are needed instead of having to pass props down through multiple components. As well, I have been trying to separate our components into those that are primarily presentational (JSX) versus those that are functional and process/retrieve data.
The text was updated successfully, but these errors were encountered: