skyslide22
C#DevKit - Blazor Components not found (Intellisense)
Any idea why my blazor components are not found?
i have this project structure
my
<MyButton>
is not found for some reason .. its found when i open the file ONCE after i restart extension host in vscode, do i need to open all files to see theirs information related to intellisense?2 replies
Net8 Blazor onclick="js()" Not Working
i have a button with enhance navigation set to false but the blazor.web.js still fires and replaces my dom manipulations with the result from the server
the onclick is not working, blazot replaces the element instantly after js manipulation
i can see that in the network tab in the chrome dev tools
how can i disable that stuff?
5 replies
✅ How to register a onNavigate/navigation event callback in Net8 SSR?
blazor.web.js replaced the entire html on navigate with the response, but scripts like
<script src="js/myscript.js></script>
are NOT executed again.
so if any js is used it will break on any navigation change.
how can i register a callback for a navigation change?
i have seen there is Window.Blazor.addEventListener() but there is absolute no documentation2 replies
❔ Python Decorators in C# ??? How do i intercept method calls with attributes?
Is is possible to intercept/prevent a method call in c# with attributes? i was thinking about something like python decorators, which can decide what happens with the method call, args and return value
that should throw a
ValueError
if the id
parameter is 69
, for example63 replies
✅ SignalR Blazor Wasm Not Reliable When Deployed
ay, i got a
blazorwasm --hosted
project, where we have build a chat app.
the problem is, when deployed to azure, the chat is not working all the time, the messages are missing, randomly. also, we use a controller to inject messages, that one is also not working sometimes
this is the controller we use
11 replies
✅ Is there a working code editor for blazor server?
i found one for blazor wasm https://github.com/serdarciplak/BlazorMonaco but that one does not work with blazor server
are there any alternatives for code highlighting in blazor server (razor files)?
6 replies