Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReactJS Hot-Reload refreshes the whole page #1204

Open
hschneider opened this issue Feb 20, 2024 · 2 comments
Open

ReactJS Hot-Reload refreshes the whole page #1204

hschneider opened this issue Feb 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@hschneider
Copy link

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

  • OS: macOS 14.3.1
  • Neutralinojs version: 5.0.0
  • Neutralinojs client library version: 5.0.0
  • Neutralinojs CLI version: 11.0.0
@hschneider hschneider added the bug Something isn't working label Feb 20, 2024
@hschneider
Copy link
Author

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
Copy link

CAN I WORK ON THIS ISSUE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants