The Option 1 is preferred as, Because on Option 2, on very re-render it creates new QueryClient for the query provider, which discards previous cache/data and duplicates the ongoing fetches. Which eliminates the superpower of Tanstack query