#35449·storybook

[Bug]: HMR does not reliably update the ArgsTable with react-docgen-typescript (component-specific)

Author: SidnioulzCreated Jul 10, 2026Updated Sep 28, 2026
Labelsbugaddon: docssev:S3docgenhmrupgrade:10.5

Describe the bug

HMR does not consistently trigger ArgsTable updates when using react-docgen-typescript. The issue is component-specific: editing the JSDoc of the Link prop in LinkAsButton.tsx produces no update until a full page reload, while editing props in Button.tsx triggers HMR correctly.

Confirmed pre-existing (also present in 10.4) — not a 10.5 regression.

Per a related QA report on astryx, the same non-update also reproduces with experimentalDocgenServer enabled (editing JSDoc does not refresh the Description or ArgsTable doc blocks), suggesting a shared underlying cause independent of the docgen engine. See #35403 for the docgen-server-side report (stale docgen when the component is imported via a barrel/re-export).

Reproduction link

Observed on the baklava design-system repo during internal QA — no minimal reproduction.

Reproduction steps

  1. Project: baklava, react-docgen-typescript, experimentalDocgenServer disabled.
  2. Edit the JSDoc of the Link prop in LinkAsButton.tsx → no ArgsTable update until a full reload.
  3. Edit props in Button.tsx → HMR updates the ArgsTable correctly.

System

bash
Storybook: 10.5.0-alpha.1 (pre-existing, also reproduced on 10.4)
Project: baklava
Docgen: react-docgen-typescript (experimentalDocgenServer disabled)

Additional context

Found during internal 10.5 QA.