dcramer / peated

https://peated.com
Apache License 2.0
63 stars 13 forks source link

Handle offline status #27

Open dcramer opened 1 year ago

dcramer commented 1 year ago

react-query seems to auto detect offline, and we need to adjust our app code to handle that (it also means the useSuspenseQuery hook is wrong everywhere)

dcramer commented 1 year ago

Did this for notification panel and activity feed but feel like there must be a better pattern to adopt vs if (!data) // ... everywhere..

dcramer commented 1 year ago

Noticed today it doesnt reflect all that quickly. Maybe thats ok, but we need a bit more reactive when "API service is unavailable" is hit.