storybookjs/storybook

Make HMR work with component JSDoc comments

Open

#20,734 opened on Jan 23, 2023

View on GitHub
 (3 comments) (1 reaction) (0 assignees)TypeScript (10,058 forks)batch import
addon: docsbughelp wantedsev:S3

Repository metrics

Stars
 (89,909 stars)
PR merge metrics
 (Avg merge 7d 22h) (184 merged PRs in 30d)

Description

When you update the comment on the component for a CSF file, the component is HMR-ed:

  • In some cases the new comment + docgen comes over the wire
  • In other cases it does not.

In all cases, the component in the store is not updated with new docgen info. We need to figure out what's happening and if it is possible to resolve.

Contributor guide