neutralinojs / neutralinojs-cli

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

ReactJS Hot-Reload refreshes the whole page #274

Open hschneider opened 9 months ago

hschneider commented 9 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 9 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 8 months ago

CAN I WORK ON THIS ISSUE

ArbajAnsari19 commented 1 week ago

@hschneider Hot Reloading is working Perfectly, I have tested it using 2 different components, changes in one component is not affecting the second one, and vice-versa.