ericljiang / premier-playoff-helper

https://premier-playoff-helper.vercel.app
MIT License
0 stars 0 forks source link

Race condition if user loads a different matchup before previous matchup finishes loading. #12

Open ericljiang opened 10 months ago

ericljiang commented 10 months ago

Async requests to retrieve matches will continue to execute and incorrectly modify state if they haven't finished before the user loads a new matchup. Either make sure stale async requests don't modify state or prevent the user from loading a new matchup while loading. Currently, team select is disabled while loading, but division select is still enabled.