DF8101: Cannot Change Dock Id
Message
Cannot change the id of a dock. Use register() to add new docks.
Cause
The update handle returned by ctx.docks.register(view) received a patch whose id differs from the original. Dock ids are immutable post-registration — they key the dock list and any shared-state references.
Fix
- Drop
idfrom your patch; only pass the fields you actually want to mutate. - To replace one dock with a different one: call
ctx.docks.register(newView)(orregister(newView, true)to overwrite an existing id).
Source
packages/hub/src/node/host-docks.ts—DevframeDockHost.register()returns anupdatecallable that throws this when the patch carries a differentid.