Updating the cache manually sometimes does not rerender the UI - TanStack