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

liveserver reloads the page if a new file is added to the project folder #125

Open
blackest opened this issue Sep 26, 2024 · 0 comments
Open

Comments

@blackest
Copy link

Hi All if you read the docs carefully, you will see this is a feature not a bug , deserves some prominance though.

I made a web app that pulls some json from an apiUrl and stores in an object. All was well until i started saving these objects as json files. I found that the page was reloading and losing the data collected from the session.

The problem was that i was saving the data to the project folder because a new file was added this triggers an automatic reload of the project in the browser (i thought it was a chrome issue because everything worked in other browsers opening edge say at http://127.0.0.1/

Saving outside the project folder not a problem , nor does creating a folder and setting it to be ignored in the live server settings.

It's natural to want to keep a project and related files together but this little gotcha took some figuring out. Yes it talks about it in the docs but it's not obvious.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant