How to handle offline case? - TanStack