Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification: do I need another, additional plugin to reload the plain JS files in my React project ? #751

Open
Gaibhne opened this issue May 31, 2023 · 1 comment

Comments

@Gaibhne
Copy link

Gaibhne commented May 31, 2023

I have a React project, so this plugin seems appropriate, but I am unclear about whether I can use it to hot reload the plain .js files that my React components reference and use or whether I need to realize that through an entirely different plugin altogether. Currently, all changes to my plain JS files references by React components trigger a full reload (or a complaint, if I set hot: 'only'), but I am unsure whether this is due to misconfiguration on my part or due to this functionality not being covered by this plugin.

@pmmmwh
Copy link
Owner

pmmmwh commented Aug 9, 2023

It is likely misconfiguration/intentional due to indeterministic behaviour. As long as the plain JS files are within the import cycle of the app they will be reloaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants