ArnaudBarre / eslint-plugin-react-refresh

Validate that your components can safely be updated with Fast Refresh
MIT License
206 stars 13 forks source link

Fast Refresh and Hooks #20

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hello. This plugin triggers a warning when my file exports a component and a related hook. However, I have read that fast refresh works with components and hooks.

Is this a bug in the plugin or am I missing some other information?

Thanks.

ArnaudBarre commented 1 year ago

It says that hooks state inside components is preserved, not that exporting hooks aside component is supported.