tldraw icon indicating copy to clipboard operation
tldraw copied to clipboard

[bug] Could not find a binding to match the start handle's bindingId

Open steveruizok opened this issue 3 years ago • 0 comments

On Sentry, a popular bug is Could not find a binding to match the start handle's bindingId.

This happens in TLDR.updateArrowBindings:

if (arrowShape.handles.start.bindingId) {
      const hasDecoration = arrowShape.decorations?.start !== undefined
      const handle = arrowShape.handles.start
      const binding = page.bindings[arrowShape.handles.start.bindingId]
      if (!binding) throw Error("Could not find a binding to match the start handle's bindingId")

The stack always includes TldrawApp.cleanup, so it's likely an issue where a binding has been deleted, then cleaned up.

I'm not able to reproduce the error myself!

steveruizok avatar Jul 25 '22 13:07 steveruizok