Back to Remix

Minor.07 Remove Legacy Connect Prop

packages/component/.changes/minor.07-remove-legacy-connect-prop.md

2.11.1315 B
Original Source

BREAKING CHANGE: remove legacy host-element connect prop support in @remix-run/component.

Use the ref(...) mixin instead:

  • Old: <div connect={(node, signal) => {}} />
  • New: <div mix={[ref((node, signal) => {})]} />

This aligns element reference and teardown behavior with the mixin composition model.