ogallagher / tejos_textiles

An online arts journal for publishing works in a new medium
MIT License
1 stars 0 forks source link

User-puzzle stats race condition #38

Closed ogallagher closed 4 years ago

ogallagher commented 4 years ago

There’s a race happening between loading the puzzle data and the user account data in the home page, which sometimes prevents the user-puzzle stats (plays, rating, fastest solve) from loading.

ogallagher commented 4 years ago

I may have fixed this issue by calling index_on_login after fetching puzzles and after fetching the user account, preventing from a double call with an external loaded_user_stats boolean variable.