C
C#9mo ago
Naarfy

Blazor - No event handlers associated

Hi. I have a simple Blazor project (.NET8) I have fields who write to a database on click. The issue I have is most of the time - but not everytime - I click on an input field, I get the error message here https://pastebin.com/Y0FxsfUe When that happens, I can't invoke my submit function (I get the same error with the handler ID incremented by 1) sometimes I restart the server and it works I can upsert my post no problem. here is my code https://pastebin.com/gcWnRyRB
Pastebin
Uncaught (in promise) Error: System.ArgumentException: There is no ...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
@page "/posts"@using Blazorise@using Markdig@using atbackend.Data@u...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
1 Reply
Naarfy
NaarfyOP9mo ago
Seems like it's from the /@bind Nevermind it just worked one time when I removed the binding but it failed after. I'd say that if I reboot the server and try again it works fin 2 out of 10 times. I'm really at loss here Sometimes, but again, not everytime, I get the error :
Uncaught Error: No interop methods are registered for renderer 1
Uncaught Error: No interop methods are registered for renderer 1
The fact that I get random results is what throws me off. I can share my repo here https://github.com/Altho/atbackend/blob/master/atbackend/Components/Pages/NewPost.razor But I don't really see what could cause the issue
Want results from more Discord servers?
Add your server