Wildbook
Wildbook copied to clipboard
[React] Hook warning fixes
Fixes various React hook warnings. Not sure if these were causing any problems yet, but some have the potential to in the future, and others are noise that could make more important warnings less visible. This also seemed like a good way to introduce myself to the React code here.
PR fixes: N/A
Changes
- "FrontDesk.jsx Line 25:9: The 'checkLoginStatus' function makes the dependencies of useEffect Hook (at line 59) change on every render."
- DataTable.jsx: Change == checks to ===
@carllelandtaylor this has been sitting as a draft for a while now. Do you want to add any more detail to it or should I go ahead and evaluate it for inclusion in the next release?
The current FrontDesk.jsx no longer has this issue in the PR, so I will close this PR and create another one to address the === issue.