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
I was wondering if there is any notion of garbage collection in Aphrodite. When a component unmounts, and it's styles are no longer being used, is it possible to clean up just that components styles? I ask because I have a specific component that can end up generating a lot of different styles over it's lifetime.
I also noticed there is a resetInjectedStyle method, but it looks like it just resets the internal keys of which classnames have already been injected into the style tag. Maybe there could be another function that does a little more? When I saw this function I expected it to completely remove all styles for the passed in className. Is there any way to do that?
The text was updated successfully, but these errors were encountered:
I was wondering if there is any notion of garbage collection in Aphrodite. When a component unmounts, and it's styles are no longer being used, is it possible to clean up just that components styles? I ask because I have a specific component that can end up generating a lot of different styles over it's lifetime.
I also noticed there is a
resetInjectedStyle
method, but it looks like it just resets the internal keys of which classnames have already been injected into the style tag. Maybe there could be another function that does a little more? When I saw this function I expected it to completely remove all styles for the passed in className. Is there any way to do that?The text was updated successfully, but these errors were encountered: