79689082

Date: 2025-07-03 15:18:06
Score: 2
Natty:
Report link

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

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ejemen Iboi