blazorators icon indicating copy to clipboard operation
blazorators copied to clipboard

Replaced `invokeMethod` with `invokeMethodAsync`

Open MahmudX opened this issue 1 year ago • 3 comments

Using invokeMethod throws the following error -

Uncaught Error: The current dispatcher does not support synchronous calls from JS to .NET. Use invokeMethodAsync instead.
    at y (blazor.server.js:1:1840)
    at C.invokeMethod (blazor.server.js:1:3960)
    at onSuccess (geolocation.js:19:15)
    at geolocation.js:41:25

This issue can be overcome by using the async method.

MahmudX avatar Oct 07 '22 18:10 MahmudX

@all-contributors please add @MahmudX for code

IEvangelist avatar Oct 07 '22 19:10 IEvangelist

@IEvangelist

I've put up a pull request to add @MahmudX! :tada:

allcontributors[bot] avatar Oct 07 '22 19:10 allcontributors[bot]

All the indentations were unintentional. Copy paste, I guess! 😛

MahmudX avatar Oct 07 '22 20:10 MahmudX