neutralinojs / neutralinojs-cli

neu cli for Neutralinojs
https://neutralino.js.org/docs/cli/neu-cli
MIT License
91 stars 57 forks source link

ReactJS Hot-Reload refreshes the whole page #274

Open hschneider opened 6 months ago

hschneider commented 6 months ago

Describe the bug When changing page content, the whole view is rendered again. Normally React only changes parts of the DOM and the app state is preserved.

To Reproduce Follow the setup from the docs: https://neutralino.js.org/docs/getting-started/using-frontend-libraries Launch an app and change its content. A short page flicker indicates a whole page reload.

Expected behavior Only changed content should re-render.

Specifications

hschneider commented 6 months ago

This repo comes with Vite and TypeScript. Hot-Reloading works as it should. Maybe the Docs should link this as an alternate solution:

https://github.com/JustPilz/neu-react-ts-vite-template

dhruvgupta0503 commented 5 months ago

CAN I WORK ON THIS ISSUE