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
A good place to start on hooks is to consider porting some components to useEffect. A lot of bugs I've seen on addons-frontend were related to all the if statement logic we needed in constructor() and componentDidUpdate() to know when to load data. I think useEffect will simplify that kind of logic and we already have some components in addons-code-manager like App which are relying on this logic.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. If you think this bug should stay open, please comment on the issue with further details. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. If you think this bug should stay open, please comment on the issue with further details. Thank you for your contributions.
A good place to start on hooks is to consider porting some components to useEffect. A lot of bugs I've seen on
addons-frontend
were related to all the if statement logic we needed inconstructor()
andcomponentDidUpdate()
to know when to load data. I thinkuseEffect
will simplify that kind of logic and we already have some components inaddons-code-manager
likeApp
which are relying on this logic.The text was updated successfully, but these errors were encountered: