Skip to content

QRCode组件问题 #3908

@wl830

Description

@wl830

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

在页面使用QRCode组件后,在页面中使用NavigationManager导航控制台会报错:fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
Unhandled exception in circuit 'OFdEQNtnFCl80VnHvPQEzwXtWtVI6kl6gx3iFYvqEpM'.
Microsoft.JSInterop.JSDisconnectedException: JavaScript interop calls cannot be issued at this time. This is because the circuit has disconnected and is being disposed.
at Microsoft.AspNetCore.Components.Server.Circuits.RemoteJSRuntime.BeginInvokeJS(Int64 asyncHandle, String identifier, String argsJson, JSCallResultType resultType, Int64 targetInstanceId)
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, CancellationToken cancellationToken, Object[] args)
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
at Microsoft.JSInterop.JSObjectReferenceExtensions.InvokeVoidAsync(IJSObjectReference jsObjectReference, String identifier, Object[] args)
at BootstrapBlazor.Components.QRCode.DisposeAsync(Boolean disposing)
at BootstrapBlazor.Components.QRCode.DisposeAsync()
at Microsoft.AspNetCore.Components.RenderTree.Renderer.<>c__DisplayClass85_0.<g__HandleAsyncExceptions|1>d.MoveNext()
ff8e31250aff15ade4df821f0587a4c4

Expected Behavior

No response

Steps To Reproduce

1.Index页面点击Counter按钮,跳转到Counter页面
2.在Counter页面点击首页
BootstrapBlazor.OnlyServer2.zip
1
index
2
counter
ff8e31250aff15ade4df821f0587a4c4

Exceptions (if any)

No response

.NET Version

.NET 8

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions