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
When a Hoist component with a local model is used as an AG Grid column renderer, it is remounted on every prop update.
This issue was discovered when using a component that displays the elapsed time between the current time and a timestamp prop, similar to Hoist's relativeTimestamp component.
Remounting of the component every time the a new timestamp was received caused a memory leak which was visible from the Windows task manager processes tab. The issue was corrected by making one timer applicable to the tab model that contained the grid, but the issue could be reappear in other applications.
The text was updated successfully, but these errors were encountered:
amcclain
changed the title
Hoist components used as column renderers receive multiple remounts upon prop change.
Research best practices around Hoist components used as grid column renderers
Jun 20, 2024
When a Hoist component with a local model is used as an AG Grid column renderer, it is remounted on every prop update.
This issue was discovered when using a component that displays the elapsed time between the current time and a timestamp prop, similar to Hoist's relativeTimestamp component.
Remounting of the component every time the a new timestamp was received caused a memory leak which was visible from the Windows task manager processes tab. The issue was corrected by making one timer applicable to the tab model that contained the grid, but the issue could be reappear in other applications.
The text was updated successfully, but these errors were encountered: