Configuration is stored upon each page visit #1752
Labels
enhancement
New feature or request
Frontend
Issue or PR related to the frontend code
javascript
Pull requests that update Javascript code
Milestone
Currently, the config is loaded from the server upon loading any page (this is intended). Unfortunately, the code as provided in the setup routine detects a change in the internal structures and stores the same configuration to the backend again. That means that there are redundant calls and in the worst case, the configuration is messed up (with concurrent requests).
I think that there are multiple ways to enhance this structure:
setup
here is the wrong routine as it is intended to construct the Vue object. Instead, the data handling (fetching the config initially) should be done outside the component and the component should use themounted
method instead.@seyfeb the code basically comes from you. Am I misunderstanding anything here (especially point 2)?
The text was updated successfully, but these errors were encountered: