[Bug]: HMR does not reliably update the ArgsTable with react-docgen-typescript (component-specific)
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
- Project: baklava,
react-docgen-typescript,experimentalDocgenServerdisabled. - Edit the JSDoc of the
Linkprop inLinkAsButton.tsx→ no ArgsTable update until a full reload. - Edit props in
Button.tsx→ HMR updates the ArgsTable correctly.
System
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.
Source: storybookjs/storybook