Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor spinner component and service

$
0
0

Two failed attempts at making a spinner component. I can't explain what's going on.

Using a service I need to add @rendermode InteractiveServer to make the @onclick do anything, but then when clicked the Spinner component gets a different instance of the SpinnerService and therefore no spinning takes place.

Example: https://drive.google.com/file/d/1EGRwv7r6MsDGdDfqxP47YsuJnb0GdFhK/view?usp=sharing

As a component and an event callback passed as a casdacing parameter.
(1) The paramers get set but then immediately disappear,
(2) when the parameters are set the event doesn't actually have a method associated with it, so nothing happens.

Example: https://drive.google.com/file/d/1-TK2_NqUl8Zc0oG9vRj5E2WmPpBy5Sde/view?usp=sharing


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>