recommended pattern to work with - TanStack