Frontend notes on React, TypeScript, and the web

Recent questions

All 34 posts
  1. Which render does useEffectEvent read its latest values from?

    October 27, 202611 min read

    useEffectEvent reads the latest values while keeping a subscription alive. A reproduction and the React source show why it reads a different value from a ref during an uncommitted render.

  2. I Told AI "Just Build It" Instead of "Give Me Ideas"

    October 3, 202612 min read

    Asking AI for creative ideas kept falling short across models. When I gave it three months of my logs and asked it to build something on its own, I got a tool I use every day. The difference was giving it evidence first and judging the result.

  3. If AI Can Do It All, What Can I Add?

    September 16, 202616 min read

    If AI writes the code, what is my role? Looking back at development work and a one-off demo helped me explore what I need to understand and what I can contribute.

  4. How I turned bug reports into reproducible links

    August 31, 20267 min read

    A case study of replacing written account and screen directions with URL state in a QA workflow, including why I ruled out localStorage, how I split responsibilities with TanStack Query, and what I tested.

  5. Does a global AGENTS.md really eat into the project-doc budget?

    August 15, 20269 min read

    I understood project_doc_max_bytes to apply to the combined size of global and project documents, and wrote the same thing in my wiki. Measuring the model-visible prompt with codex debug prompt-input produced a different result. This post traces how I varied the limit, identified its scope, and retested the finding after the files changed.

  6. Why I separated data processing and UI responsibilities from React Query custom hooks

    July 21, 202611 min read

    Server response mapping, error handling, cache synchronization, and UI feedback had become mixed inside custom hooks. This post explains how I reassigned them to React-independent data functions, query and mutation options, and components.