---
title: "Discussion on \"Modern React Query Mistakes To Avoid\" | Hashnode"
description: "Discussion on \"Modern React Query Mistakes To Avoid\". 1. Duplicating Server State with useState\nThe Problem: You're storing server data in local state and trying to update it manually for optimistic updates.\n// ❌ Don't do this\nfunction UserProfile({ userId }) {\n  const [user, setUser] = useState(null);\n..."
url: "https://hashnode.com/posts/modern-react-query-mistakes-to-avoid/686f99e4847907b9c90f5703"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Modern React Query Mistakes To Avoid](https://tigerabrodi.blog/modern-react-query-mistakes-to-avoid?utm_source=hashnode&utm_medium=feed)

1\. Duplicating Server State with useState The Problem: You're storing server data in local state and trying to update it manually for optimistic updates. // ❌ Don't do this function UserProfile({ userId }) { const \[user, setUser\] = useState(null); ...

Jul 10, 2025 · 4 min read · tigerabrodi.blog  
Read the article

-   [#reacthooks](https://hashnode.com/tag/reacthooks)

## Written by

[Tiger Abrodi](https://hashnode.com/@tigerabrodi)

@tigerabrodi · Germany

  
[View profile](https://hashnode.com/@tigerabrodi)

Obsessed with crafting software.

Just a guy who loves to write code and watch anime.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
