As reported in #40 (comment), deleting the last character in the only remaining node view can throw errors. This is reproducible in the provided demo.
react-dom.development.js:12056 Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
at removeChildFromContainer (http://localhost:5173/node_modules/.vite/deps/chunk-OB2TTU35.js?v=886cae67:8473:23)
at commitDeletionEffectsOnFiber (http://localhost:5173/node_modules/.vite/deps/chunk-OB2TTU35.js?v=886cae67:17504:21)
at recursivelyTraverseDeletionEffects (http://localhost:5173/node_modules/.vite/deps/chunk-OB2TTU35.js?v=886cae67:17482:13)
at commitDeletionEffectsOnFiber (http://localhost:5173/node_modules/.vite/deps/chunk-OB2TTU35.js?v=886cae67:17573:15)
at recursivelyTraverseDeletionEffects (http://localhost:5173/node_modules/.vite/deps/chunk-OB2TTU35.js?v=886cae67:17482:13)
at commitDeletionEffectsOnFiber (http://localhost:5173/node_modules/.vite/deps/chunk-OB2TTU35.js?v=886cae67:17573:15)
at recursivelyTraverseDeletionEffects (http://localhost:5173/node_modules/.vite/deps/chunk-OB2TTU35.js?v=886cae67:17482:13)
at commitDeletionEffectsOnFiber (http://localhost:5173/node_modules/.vite/deps/chunk-OB2TTU35.js?v=886cae67:17530:17)
at commitDeletionEffects (http://localhost:5173/node_modules/.vite/deps/chunk-OB2TTU35.js?v=886cae67:17473:13)
at recursivelyTraverseMutationEffects (http://localhost:5173/node_modules/.vite/deps/chunk-OB2TTU35.js?v=886cae67:17670:17)
flushSyncCallbacks @ react-dom.development.js:12056
(anonymous) @ react-dom.development.js:25651
As reported in #40 (comment), deleting the last character in the only remaining node view can throw errors. This is reproducible in the provided demo.