Skip to content

How can I avoid full page reloads? #112

Closed Answered by ArnaudBarre
devuxer asked this question in Q&A
Discussion options

You must be logged in to vote

You should update to the latest version of the plugin you will get a message on why the file was invalidated.
There are rules to follow in React to get HMR working: https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#consistent-components-exports
If you're using eslint, you can try https://github.com/ArnaudBarre/eslint-plugin-react-refresh to find some issues

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@devuxer
Comment options

@ArnaudBarre
Comment options

@devuxer
Comment options

@ArnaudBarre
Comment options

@devuxer
Comment options

Answer selected by ArnaudBarre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants