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
Is your feature request related to a problem? Please describe.
As established in #453, the default export pattern for the story meta information breaks HMR
Describe the solution you'd like
The rules of react-refresh do allow primitive constant exports however; so one could write a routine that looks for a string export called TITLE for example, and take the story title from there.
Describe alternatives you've considered
An alternative would be some kind of config-level parametrization of title-prefixing, based on story file path?
Would you be open to this feature? I'd take a shot at doing a PR
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
As established in #453, the default export pattern for the story meta information breaks HMR
Describe the solution you'd like
The rules of react-refresh do allow primitive constant exports however; so one could write a routine that looks for a string export called
TITLE
for example, and take the story title from there.Describe alternatives you've considered
An alternative would be some kind of config-level parametrization of title-prefixing, based on story file path?
Would you be open to this feature? I'd take a shot at doing a PR
The text was updated successfully, but these errors were encountered: