Skip to content

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 id from your patch; only pass the fields you actually want to mutate.
  • To replace one dock with a different one: call ctx.docks.register(newView) (or register(newView, true) to overwrite an existing id).

Source

Released under the MIT License.