Repository navigation
Stop QuickGrid listeners when disposed during init - #70073
jsakamotoIGJP wants to merge 1 commit into
Conversation
|
Thanks for your PR, @jsakamotoIGJP. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
/review |
| if (_wasDisposed) | ||
| { | ||
| // If the component has been disposed while init was running, DisposeAsync could not remove the listeners it added | ||
| await _jsEventDisposable.InvokeVoidAsync("stop"); |
There was a problem hiding this comment.
During permanent Interactive Server teardown, an already-admitted init completion can resume after the runtime has been marked disconnected and the grid disposed. This stop call then throws JSDisconnectedException, which can produce unhandled-render/circuit diagnostics during an expected disconnect. Could this late cleanup tolerate JSDisconnectedException, as DisposeAsync already does?
Human-directed and GitHub Copilot-generated.
|
Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime. |
Stop QuickGrid listeners when disposed during init
Call
stopwhen QuickGrid is disposed whileinitis pendingDescription
A small fix, in case it is worth taking. #62840 added a
_wasDisposedcheck after the moduleimport. This PR adds the same check afterinit. If the grid has been disposed by then,OnAfterRenderAsynccallsstopand disposes the handle, becauseDisposeAsynccould not do it.The new test
StopsEventListenersWhenDisposedDuringInitdisposes the grid whileinitis pending. It fails without the fix.If the issue is closed as not worth fixing, I will close this PR too.
Fixes #70072