Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Parcel hot reloading problems #54

Closed
atomiks opened this issue May 29, 2018 · 13 comments
Closed

Parcel hot reloading problems #54

atomiks opened this issue May 29, 2018 · 13 comments
Labels
bug Something isn't working website

Comments

@atomiks
Copy link
Contributor

atomiks commented May 29, 2018

When the file is saved in a text editor the page is hot-reloaded to preserve Hyperapp's state and the console comes up with a bunch of errors and a bunch of elements don't get rendered. I've had similar problems in multiple different projects and I'm not sure why.

@flxwu any help?

@flxwu
Copy link
Contributor

flxwu commented May 29, 2018

Do you mean that i.e. the icons or just whole elements are missing on the page? I've had this as well and only fixable by reloading the page

@flxwu
Copy link
Contributor

flxwu commented May 29, 2018

But you have to tell me what kind of errors it spits out 😄

@flxwu flxwu added bug Something isn't working website labels May 29, 2018
@atomiks
Copy link
Contributor Author

atomiks commented May 29, 2018

I've found the issue and it's related to all innerHTML={} usage.

I'm making an Icon component like this which fixes it (rather than using innerHTML prop directly):

img

Similar will be done for markdown.

@atomiks
Copy link
Contributor Author

atomiks commented May 29, 2018

Confirmed works for markdown too.

@atomiks atomiks closed this as completed May 29, 2018
@atomiks atomiks reopened this May 29, 2018
@atomiks
Copy link
Contributor Author

atomiks commented May 29, 2018

There are still issues with this apparently. Elements no longer disappear but state is strange with the dropdown after saving a file and opening answers (two clicks required, etc).

@fejes713
Copy link
Collaborator

fejes713 commented Jun 1, 2018

@atomiks any news regarding this problem?

@jorgebucaran
Copy link

Could this be related to jorgebucaran/hyperapp#705?

@fejes713
Copy link
Collaborator

fejes713 commented Aug 8, 2018

@jorgebucaran thanks! @atomiks can check on this one so we can close this issue?

@jorgebucaran
Copy link

jorgebucaran commented Aug 8, 2018

@fejes713 jorgebucaran/hyperapp#705 (comment) was closed as per that comment. I've not had much trouble with Parcel recently, but I still have to restart it from scratch from time to time.

EDIT: I don't think this is Hyperapp specific.

@fejes713
Copy link
Collaborator

fejes713 commented Aug 8, 2018

Thanks for letting us know

@Chalarangelo
Copy link
Owner

For what it's worth, most of the trouble I've had with Hyperapp and Parcel comes from the .cache directory messing up stuff. Try adding the proper flag for ignoring that folder and see what result you get.

@fejes713
Copy link
Collaborator

@atomiks can we close this? Seems like the website is stable and I had no issues with this since then.

@skatcat31
Copy link
Contributor

closing due to age and lack of repeatable creation of issue.

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

No branches or pull requests

6 participants