Giter VIP home page Giter VIP logo

bethanyspieshophr's Introduction

BethanysPieShopHR

Code for the Blazor: Getting Started course on Pluralsight.

bethanyspieshophr's People

Contributors

gill-orange avatar gillcleeren avatar lbroos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bethanyspieshophr's Issues

Prevent navigation away from edit

Gill,

I like what you are working on here, I see it isn't quite on Plural Sight yet. What would you say if one wanted to add functionality to prevent navigation once an edit is made to the employee-- say a popup message warning changes will be lost. I can't seem to find anything on the Web for how this type of action should take place in Blazor. That is, detect the model is dirty and prevent navigation or show a popup if it is. If I ever figure it out, I'll answer my question.

Thanks,
Joe

Update Employee endpoint is never hit

Hi, I've been following this through recently and I'm essentially stuck on the saving data portion of the course.

The first issue I encountered was related to the following:

Blazor WebAssembly TypeError: Failed to fetch

I was receiving this at the point the HttpClient made the put request to edit an employee and the only way was able to stop an exception occuring was to following this guide:

https://www.thebestcsharpprogrammerintheworld.com/2021/04/07/blazor-webassembly-typeerror-failed-to-fetch/

After then getting this working I ran the application in debug and found that the edit endpoint within the solution is never hit. I can see that on all other API requests I see the breakpoints I have setup in the API solution being triggered but for the put method this is not the case. Any pointers? I've tried adding a web.config file to the API solution to disable WebDav which is my usual port of call for API projects when WebDav appears to be blocking the PUT keyword but this doesn't seem to work in this case. I'm at a loss as even pulling down and running your solution doesn't seem to work for me.

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.