vite-go icon indicating copy to clipboard operation
vite-go copied to clipboard

React Vite template not hot reload

Open mengtongun opened this issue 3 years ago • 3 comments

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

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

mengtongun avatar Oct 29 '22 10:10 mengtongun

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.

torenware avatar Oct 29 '22 18:10 torenware

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

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

mengtongun avatar Oct 30 '22 01:10 mengtongun

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?

torenware avatar Apr 03 '23 03:04 torenware