-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DragNDrop SSB Race Condition #71
Comments
Thank you for your report. I suspect something like prerendering Could you try disabling the prerendering and see if it helps? from https://docs.microsoft.com/en-us/aspnet/core/blazor/state-management?view=aspnetcore-3.0:
If this can be confirmed, I should probably add an alternative setup method for SSB in the demo project ( |
I actually already have pre-rendering disabled. I never had a problem with the loading time of SSB (way faster than any angular application I've ever written) and it only caused me headaches :) |
Effectively, I can reproduce this without prerendering so please disregard my previous comment. The problem is, like you say, a race condition in the A possible fix that I've tried which works is to block asyncronically for a few ms and check if the script has been loaded. I find this fix unnerving because I have set |
The error occurs on:
RegisterDropEventsAsync();
:I do have
InitializeOnFirstCall
enabled, but I also tried this as well:... and still received the error (same frequency). Adding Task.Delay did not help.
Retrying when it fails fixes the issue, which I think is probably evidence that there is a race condition here (which could mean the problem can only be replicated at very low latency e.g. local development).
This works:
The text was updated successfully, but these errors were encountered: