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
In TypeScript, a type export currently triggers react-refresh/only-export-components:
typefoo=string;exportconstFoo=()=>null;exporttype{foo};// error: Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components.
As far as I understand, type aliases have no runtime behaviour and therefor should not prevent fast refresh.
The text was updated successfully, but these errors were encountered:
Yeah, my own types are always PascalCase too, but in this case I was re-exporting a lowercase type from another module (type editor from monaco-editor).
In TypeScript, a type export currently triggers
react-refresh/only-export-components
:As far as I understand, type aliases have no runtime behaviour and therefor should not prevent fast refresh.
The text was updated successfully, but these errors were encountered: