Comments (2)
Update: I assumed dotnet watch
would be functionally equivalent to Ctrl+F5
/ Start Without Debug. Nope.
With Ctrl+F5
i'm getting DOM updates and the Counter increment updates, but changes to the Weather Controller's values still aren't reflected.
I'll keep an eye on any changes in behavior as i do my tweaks to the hosted template and compare that to the blazorwasm single-project.
I haven't used hosted mode myself yet so i may be doing something wrong, but... Starting with a fresh default Hosted template, i couldn't get Hot Reload to work at all, from VS or CLI.
The edits i made all did the little checkmark indicator, but no functional difference was observed. I had "Hot Reload on File Save" enabled but also did manual-hot-reloads via the button to no avail:
Setting Weather Summaries to include only "Scorching":
https://i.imgur.com/2zCi4TQ.gif
These others might not be as relevant but...
Editing `MainLayout.razor` didn't reflect the changes in the DOM, even after a manual refresh:
https://i.imgur.com/BenGE2T.gif
Editing the Counter increment also had no effect:
https://i.imgur.com/nsdsbXg.gif
---
I'll still put together an initial Tailwind-ized Hosted template this afternoon/tomorrow and do some reading on Hot Reload as it relates to Hosted projects but this initial experience has me scratching my head... Why *wouldn't* the default template be working ? Surely i must be missing something lol.
from tailblazor-templates.
I also did a lot of searching around and from what I read, hosted mode just doesn't work at all with hot reload so it's not really related to your tailwind integration.
As a workaround I am just launching the two hosts separately on separate ports, one for the UI and one for the API. After that, hot reloading does work. It's just a bit annoying. I think with later versions of hot reload this might get improved.
Though if you find a way to make it work that would be great and please reply in this thread about it.
from tailblazor-templates.
Related Issues (20)
- add Blazor-Server single project template
- create the nuget package HOT 1
- add launch configs back in for vscode
- rename TailBlazor.sln to TailBlazorFull.sln and update namespaces HOT 1
- apply best practices for templates
- add Razor Pages w/ Blazor single-project template HOT 1
- npm run build fails (cannot find scoped css) HOT 1
- VS inverts template icon for dark mode
- tailblazor.dev is not loading HOT 7
- vNext
- vNext HOT 1
- add Multi-Project template HOT 1
- .NET 7
- ensure up to date vs code / CLI experience
- rewrite landing page: more info, less words
- move to single solution template
- add hosted mode template HOT 1
- add nuget publish to CI
- snyc templates with SWA
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailblazor-templates.