torenware / vite-go

Go module to integrate Vue 3, React, and Svelte projects with Golang web projects using Vite 2 and 3
Other
203 stars 10 forks source link

React Vite template not hot reload #3

Open mengtongun opened 1 year ago

mengtongun commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

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

torenware commented 1 year ago

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:

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?