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 (89,909 stars) (10,058 forks)batch import
addon: docsbughelp wantedsev:S3

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