BobaBoard / boba-frontend

Frontend for BobaBoard
https://www.bobaboard.com
MIT License
6 stars 11 forks source link

Avoid 500 errors when switching tabs and coming back #117

Open essential-randomness opened 1 year ago

essential-randomness commented 1 year ago

Switching tabs and coming back to a page sometimes results in a 500 error because some data has been removed from the cache. We should probably look at our react-query settings and their documentation to figure out why this is happening.

We might also consider improving our types/remove some not-null assertions (!) so that we effectively don't accidentally access things that aren't there.