oedotme / generouted

Generated file-based routes for Vite
https://stackblitz.com/github.com/oedotme/generouted/tree/main/explorer
MIT License
1.02k stars 48 forks source link

reload page #96

Closed willowloveforever closed 1 year ago

willowloveforever commented 1 year ago

Hello, I would like to ask what if I want to re render a component and reload the loadFn function without refreshing the page. What should I do. thanks

oedotme commented 1 year ago

Hey @willowloveforever, I'm not sure that's possible, it's more about Vite and the framework-specific HMR implementation. You can find more details about how it's expected to work on the React plugin for Vite docs and Gatsby docs