https://regeneratingserumolayfast.blogspot.com/2024/07/react-useeffect-state-isnt-updated.html
React Useeffect() State Isn't Updated