You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/Component.stories.js is created with stories referencing component A from src/Component.tsx
src/Component.tsx doesn't exist yet (or it does, but A isn't exported yet)
Preview.js loads and detects components, but stories aren't detected because the associated component cannot be found
src/Component.tsx is updated and A is now exported
Preview.js correctly refreshes and detects A but since src/Component.stories.js hasn't been touched, its stories aren't re-detected (even though they would now be)
The text was updated successfully, but these errors were encountered:
Due to how components are cached across detection refreshes (https://github.com/fwouts/previewjs/blob/main/core/src/detect-components.ts), there is a particular edge case where stories will never be detected:
src/Component.stories.js
is created with stories referencing componentA
fromsrc/Component.tsx
src/Component.tsx
doesn't exist yet (or it does, butA
isn't exported yet)src/Component.tsx
is updated andA
is now exportedA
but sincesrc/Component.stories.js
hasn't been touched, its stories aren't re-detected (even though they would now be)The text was updated successfully, but these errors were encountered: