C
Cincy Steve
Guest
As I start to learn how to write a Blazor WebAssembly app that also contains TypeScript and JavaScript code, I am running into a problem in which changes in my JS code are not being reflected in the localhost version when I run the debugger. I am attaching 2 screenshots to show the problem, one showing the revised code (see line 26 that contains an 8 as the argument passed to BBDetail_GetData ) and the other showing the localhost code that still shows 9 as the argument (which I replaced with 8).
I am using VS Community 2019 v16.6.0 and checked the Progressive Web Application setting when I created the app. The JS code is in a a folder called js within the wwwroot folder and the following html statement is in the <body> of the html in the index.html file: <script src="js/ME JS Interop Native.js"></script>.
Is there something I need to do to get the revised code to replace the prior code when running the debugger?
Thanks. Steve
P.S. I just found this StackOverflow posting (JavaScript file not updating no matter what I do) that pointed out how I can do a "Hard Reload" by holding a click on the Chrome refresh icon. That fixed the problem. But surely I won't have to do that every time I change my code. Isn't there a way for force a Hard Reload on every Build?
Continue reading...
I am using VS Community 2019 v16.6.0 and checked the Progressive Web Application setting when I created the app. The JS code is in a a folder called js within the wwwroot folder and the following html statement is in the <body> of the html in the index.html file: <script src="js/ME JS Interop Native.js"></script>.
Is there something I need to do to get the revised code to replace the prior code when running the debugger?
Thanks. Steve
P.S. I just found this StackOverflow posting (JavaScript file not updating no matter what I do) that pointed out how I can do a "Hard Reload" by holding a click on the Chrome refresh icon. That fixed the problem. But surely I won't have to do that every time I change my code. Isn't there a way for force a Hard Reload on every Build?
Continue reading...