Rebind
Instance Recovery in Inspect: rebind broken or remote instances to another component while preserving overrides and component properties.
What Rebind does
Rebind replaces an instance's main component source (swapComponent) while preserving instance-level customization.
Use it when:
- an instance is
Broken(main component is missing); - an instance is
Remoteand must be relinked to a local component; - you need to migrate instances to a new component source without rebuilding layouts.
Rebind is part of Instance Recovery in Inspect.
Rebind vs Swap
- Rebind: replaces the component source of an instance.
- Swap: rebinds variables/styles while keeping the same component source.
See Swap for variable/style migration.
Step-by-step: Rebind
- Select an instance (or select a parent that contains broken instances).
- Open Inspect.
- In Instance Recovery, click:
- Rebind for current/matching instances;
- Rebind All for broken descendants in the selected subtree.
- The plugin finds candidate instances on the current page.
- In the modal, set target component by one of these methods:
- paste Component ID;
- paste Component Key (library key);
- click target picker and select a
COMPONENTon canvas.
- Click Bind.
Matching logic before modal opens
When finding matching instances:
- if source instance has a resolvable main component, matches are found by main component
id/keyon the current page; - if source is broken, fallback matching uses same instance name among broken instances.
This allows bulk recovery for common broken-instance clusters.
What is preserved
Before swap, the plugin captures and then restores:
- component property values;
- text/paint/stroke/effect overrides in the instance tree;
- visibility/opacity and selected plugin data used by recovery helpers.
Result: layout/customization is preserved as much as the target component structure allows.
Create Component from instance
If target component does not exist yet:
- In Rebind modal, click Create Component.
- Plugin creates a new component from a detached clone of the instance.
- Original instance is rebound to this new component.
Useful for fast local recovery from broken external sources.
Limits and caveats
- Rebind requires
INSTANCE_REBINDfeature. - Matching is page-scoped (current page), not full-document.
- Target must resolve to a
COMPONENT(not arbitrary node). - If required fonts are unavailable, some text restoration may be partial until fonts are loaded.