[GH-ISSUE #84] Refresh content #49

Closed
opened 2026-05-05 11:32:33 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @gjabelAmbitas on GitHub (Apr 26, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/84

How to refresh content? Its running on some packager server? or i need to restart it every time i made change? Thanks.

Originally created by @gjabelAmbitas on GitHub (Apr 26, 2018). Original GitHub issue: https://github.com/kusti8/proton-native/issues/84 How to refresh content? Its running on some packager server? or i need to restart it every time i made change? Thanks.
Author
Owner

@mischnic commented on GitHub (Apr 26, 2018):

You need to restart node.

@kusti8 Something like Hot Module Replacement would be great!

<!-- gh-comment-id:384712459 --> @mischnic commented on GitHub (Apr 26, 2018): You need to restart node. @kusti8 Something like Hot Module Replacement would be great!
Author
Owner

@kusti8 commented on GitHub (Apr 27, 2018):

It would be nice, but I want to focus on adding yoga, and merging your
UiArea and stuff like that first. I've been really busy, but I'll get to it.

It would be easy to just reload the entire thing if there is a change, but
to do actual hot reloading is pretty hard.

On Thu, Apr 26, 2018 at 12:52 PM Niklas Mischkulnig <
notifications@github.com> wrote:

You need to restart node.

@kusti8 https://github.com/kusti8 Something like Hot Module Replacement
would be great!


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
https://github.com/kusti8/proton-native/issues/84#issuecomment-384712459,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJW73N-HI_y3iDiiVQVSwIHNFQvxktp4ks5tsftNgaJpZM4TlmQO
.

<!-- gh-comment-id:384827136 --> @kusti8 commented on GitHub (Apr 27, 2018): It would be nice, but I want to focus on adding yoga, and merging your UiArea and stuff like that first. I've been really busy, but I'll get to it. It would be easy to just reload the entire thing if there is a change, but to do actual hot reloading is pretty hard. On Thu, Apr 26, 2018 at 12:52 PM Niklas Mischkulnig < notifications@github.com> wrote: > You need to restart node. > > @kusti8 <https://github.com/kusti8> Something like Hot Module Replacement > would be great! > > — > You are receiving this because you were mentioned. > > > Reply to this email directly, view it on GitHub > <https://github.com/kusti8/proton-native/issues/84#issuecomment-384712459>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AJW73N-HI_y3iDiiVQVSwIHNFQvxktp4ks5tsftNgaJpZM4TlmQO> > . >
Author
Owner

@gjabelAmbitas commented on GitHub (Apr 27, 2018):

Closing this issue... :) thanks for reply

<!-- gh-comment-id:384887272 --> @gjabelAmbitas commented on GitHub (Apr 27, 2018): Closing this issue... :) thanks for reply
Author
Owner

@mischnic commented on GitHub (Apr 27, 2018):

@kusti8 In case you do want to work on this, I've setup the required tooling (webpack with hot reloading) in this repo: https://github.com/mischnic/proton-hot-boilerplate.
Currently, it simply calls render(<App/>) on every change (which doesn't work).


EDIT: I've got it working quite well now. (Reloading the App doesn't work, only Windows).

<!-- gh-comment-id:385028559 --> @mischnic commented on GitHub (Apr 27, 2018): @kusti8 In case you do want to work on this, I've setup the required tooling (webpack with hot reloading) in this repo: https://github.com/mischnic/proton-hot-boilerplate. Currently, it simply calls `render(<App/>)` on every change (which doesn't work). --- **EDIT**: I've got it working quite well now. (Reloading the `App` doesn't work, only `Window`s).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/proton-native#49
No description provided.