Skip to content
曾亮懿 ZengLiangYi Blog
Tag

#React

2 posts tagged "React".

TanStack Query Data Flow: Keys, Invalidation, and Queries

Trace ChatCrystal hooks and API, verify parameterized query keys and prefix invalidation, and distinguish accepted requests from background refreshes.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #React #TypeScript

Stable React Event Subscriptions: useEffect to useEffectEvent

Prevent WebSocket, EventEmitter, and DOM listeners from resubscribing on every callback change, using a ref proxy or React 19.2 useEffectEvent.

曾亮懿 曾亮懿
4 min read
#React #hooks #event subscriptions

From writing to code

Explore ChatCrystal, developer tools and daily learning notes on my GitHub. Questions about the implementation are welcome.