You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: