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

React Vite template not hot reload #3

Open
mengtongun opened this issue Oct 29, 2022 · 3 comments
Open

React Vite template not hot reload #3

mengtongun opened this issue Oct 29, 2022 · 3 comments

Comments

@mengtongun
Copy link

mengtongun commented Oct 29, 2022

I have played around with the example Vue HRM. working fine.

But I tried with React it didn't. Until I refresh to page.

@torenware
Copy link
Owner

I'd need to check your code. Could you post it as a github repo?

I've heard rumors that some versions of Vite may have trouble, but I'll need to try it out to see.

@mengtongun
Copy link
Author

https://github.com/mengtongun/go-vite-react

Here is the sample project with react I have tried with HRM but not working.

@torenware
Copy link
Owner

Sorry for the very long delay on my part. I've had the chance to get back to this. I started up your app by:

  • cloning the repo
  • cd into the repo
  • start the app with make dev, which starts up the app in dev mode and fires up Vite.

As near as I can tell, it works perfectly. I edit the App.jsx and the running app immediately reflects the the change.

What were you doing that did not work as you expected?

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