Similar to https://github.com/tldraw/tldraw-v1/issues/297 this also throws and exception in the useShapeTree as the shape type property is missing. This only seems to be an issue with local undo/redo, it doesn't impact Liveblocks multiplayer undo/redo.
I'm wondering if there needs to be a filter here as a fallback in case any unknown shapes / shapes missing a type are found to prevent these crashes.
To Reproduce:
Similar to https://github.com/tldraw/tldraw-v1/issues/297 this also throws and exception in the useShapeTree as the shape type property is missing. This only seems to be an issue with local undo/redo, it doesn't impact Liveblocks multiplayer undo/redo.
I'm wondering if there needs to be a filter here as a fallback in case any unknown shapes / shapes missing a type are found to prevent these crashes.
Demo: https://www.loom.com/share/59b3f36c324e45ec9c5012b6ef775c98