Git Product home page Git Product logo

Comments (2)

McNerdius avatar McNerdius commented on September 16, 2024

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.

ErnieBernie10 avatar ErnieBernie10 commented on September 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.