← Back to all topics

Posts about "frontend engineering"

Optimistic Updates: Elevating Perceived Performance in Frontend Applications

Optimistic updates provide a powerful approach to enhancing the perceived performance of applications by anticipating successful operations and updating the user interface (UI) before server confirmation. This article delves into the efficient implementation of optimistic updates using React, React Query, and SWR, and discusses how they can significantly improve user experience (UX).

about

Ehsan Hosseini

Ehsan Hosseini

me [at] ehosseini [dot] info

I work on what AI agents are allowed to do inside companies, and whether you can prove who authorized it. I write about it here, and build it at my company.

How it works?

I write what I learn while building systems that decide what an AI agent is allowed to do. The thinking, the arguments, and the calls about what's true are mine. I use AI to draft, structure, and speed up research, the same way I'd use any other tool. It doesn't decide what I believe.

I check technical claims against primary sources before a post goes out: the specs, the RFCs, the original documentation, not a model's memory of them. When I'm uncertain, I say so. When something is opinion rather than fact, I mark it as one. If I get something wrong, that's on me.

© 2026 Ehsan Hosseini. All rights reserved.