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, the useEffect hook in the sidebar that sets the name, picture, and requests if the user is admin is called on every render since there is no dependency array. We can optimize it by adding a dependency array so it only runs when the user logs in/logs out. Also the admin check only needs to be done if the user is logged in
The text was updated successfully, but these errors were encountered:
js0mmer
added
the
Story Point: 2
small UI change, maybe some CSS + JS. unit test would ideally be written, but not always.
label
May 28, 2023
Currently, the useEffect hook in the sidebar that sets the name, picture, and requests if the user is admin is called on every render since there is no dependency array. We can optimize it by adding a dependency array so it only runs when the user logs in/logs out. Also the admin check only needs to be done if the user is logged in
The text was updated successfully, but these errors were encountered: