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

custom vue.js component not updated after modification #3074

Closed
MLaurenceFournier opened this issue May 15, 2024 · 3 comments
Closed

custom vue.js component not updated after modification #3074

MLaurenceFournier opened this issue May 15, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@MLaurenceFournier
Copy link

Description

I've copied the custom_vue_component example in my project. When I change the html template in counter.js, the component isn't updated in the browser (watchfile isn't involved, I'm restarting the whole process). I found that renaming counter.js and changing the component parameter forces an update.

I know almost nothing about vue.js, but I suspect some kind of compilation step is cached and not invalidated when I edit counter.js.

How can I force a "recompilation" of counter.js every time I relaunch the process?

system information
os: windows 10
package manager: conda
channel: conda-forge
python: 3.10.12
nicegui: 1.4.25

@falkoschindler
Copy link
Contributor

Hi @MLaurenceFournier, I guess your browser is caching the counter.js file. Try reloading the page with caching disabled and you should be able to seen an update.

@MLaurenceFournier
Copy link
Author

Thanks a lot @falkoschindler. The browser cache was indeed the problem. Now I feel stupid asking the question, but I hope it will save you from answering it another time. May I suggest adding a comment on the subject in counter.js?

@falkoschindler
Copy link
Contributor

I'm glad we found the root cause. 🙂
I added a comment in a3e982a.

@falkoschindler falkoschindler added the documentation Improvements or additions to documentation label May 16, 2024
@falkoschindler falkoschindler added this to the 1.4.26 milestone May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants