We are using TanStack Router, and now the breaking changes in 0.5.0 seem to hit us like a hammer: we get countless warnings from every single route's index file:
Warning: 41:7 warning Fast refresh only works when a file only exports components. Move your component(s) to a separate file. If all exports are HOCs, add them to the `extraHOCs` option react-refresh/only-export-components
These files DO NOT export anything else but the Route. Example: https://github.com/eclipse-apoapsis/ort-server/blob/main/ui/src/routes/admin/index.tsx
I have read your justifications for the change, and somewhat agree, but at the very least, the warnings are very misleading, as they are hinting the files export something else than components - when there is only one export in the file. Moreover, we are using TanStack Router as per their documented pattern, of which the given file is a good example.
We are using TanStack Router, and now the breaking changes in 0.5.0 seem to hit us like a hammer: we get countless warnings from every single route's index file:
These files DO NOT export anything else but the
Route. Example: https://github.com/eclipse-apoapsis/ort-server/blob/main/ui/src/routes/admin/index.tsxI have read your justifications for the change, and somewhat agree, but at the very least, the warnings are very misleading, as they are hinting the files export something else than components - when there is only one export in the file. Moreover, we are using TanStack Router as per their documented pattern, of which the given file is a good example.