For some reason the code has to be ran twice to update, maybe its an issue with async and state.
For some reason the code has to be ran twice to update, maybe its an issue with async and state.