Fix toggling debug info crashing the editor
Fixes https://github.com/superlistapp/super_editor/issues/2254
- Changes
StackinSuperEditorImeDebugVisualstoSliverHybridStackbecause the render object now lives in a sliver - Implements
forgetChildinsideContentLayersElement. This is necessary because thecontentofContentLayersElementis being reparented usingGlobalKeyso it needs to be excluded fromvisitChildrenwhen unmounting.
@knopp are you still working on this, or do you think you responded to all my comments? Whenever you do, please re-request a review so that I'm notified.
I added missing comments.
@knopp I don't see any code comments in the change log
@knopp I don't see any code comments in the change log
That's because I forgot to actually push the changes :) Sorry about it. Should be there now.
@knopp can you give this PR another pass for comments?
@matthew-carroll, let me know if this is any better.
@angelosilvestre can you cherry pick this?