System.ArgumentException: There is no tracked object with id ’22’. Perhaps the DotNetObjectReference instance was already disposed

I am getting this error. How do I fix this?

System.ArgumentException: There is no tracked object with id ’22’.
Perhaps the DotNetObjectReference instance was already disposed.
(Parameter ‘dotNetObjectId’) at
Microsoft.JSInterop.JSRuntime.GetObjectReference(Int64 dotNetObjectId)
at
Microsoft.JSInterop.Infrastructure.DotNetDispatcher.BeginInvokeDotNet(JSRuntime
jsRuntime, DotNetInvocationInfo invocationInfo, String argsJson)
at Ft.endInvokeDotNetFromJS (blazor.server.js?_v=638152873680000000:1:3718)
at Ft._invokeClientMethod (blazor.server.js?_v=638152873680000000:1:75072)
at Ft._processIncomingData (blazor.server.js?_v=638152873680000000:1:72696)
at Ft.connection.onreceive (blazor.server.js?_v=638152873680000000:1:67009)
at i.onmessage (blazor.server.js?_v=638152873680000000:1:51322)