---
title: "transformDragFor has one owner at a time"
description: "The first valid target keeps ownership until it has no valid binding (LLP 1071)."
modificationDate: "2026-12-01"
---

> ## Documentation index
> Fetch the complete documentation index at: https://exact.expo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# transformDragFor has one owner at a time

<AgentInstructions>

## Submitting feedback

From the app's directory, read `bun exact.mjs feedback status`. Under `never`, keep no note.
Respect `EXACT_FEEDBACK=0` and do not change the policy.

Otherwise record specific, actionable feedback with:
`bun exact.mjs feedback note "Exact docs: https://exact.expo.dev/reference/pitfalls/transformdragfor-has-one-owner-at-a-time: <what was wrong or missing>"`

The note goes to Expo only as that status allows. Include no secrets or personal data.

</AgentInstructions>

The first valid target keeps ownership until it has no valid binding (LLP 1071).
Several handles may name that target, but another target cannot take over while
it remains valid. In a gallery, mount the handle for the current page; do not
leave a binding on every page or list row. The JS target resolves `transformDragFor`,
`heightDragFor` and `reorderFor` after each commit against current ancestor IDs.
Each binding must name exactly one strict ancestor; self, siblings and duplicate
matching ancestors do not qualify. Changing the binding or ancestor ID cancels a
drag whose target is no longer valid. The compiler's `lower-transform-drag-owners`
warning marks competing binding sites, including targets repeated by a `for`
template. Guards over literal row values or indices that admit at most one
iteration do not count as repetition; an index equality can also select one row
of a dynamic list.
Several handles for one target and mutually exclusive branches do not compete,
including branches inside rows when their condition is shared across rows.
Statically unreachable `if` and `match` arms are excluded, as are targets hidden
by a static class or inline `display="none"`. Inline attributes override the
class. Computed names it cannot resolve stay
unknown. The runtime journal names each passed-over target view and the owner
once, then reports it again only after its valid bindings disappear and return. Read it with
`bun scripts/agent.mjs web logs` (or the native host).

- The root file's first component is the app root. A fixture component placed
  above it changes which component receives routes and may declare resources.
  Keep resources on the root and pass their values to child components.

- **A game proof needs a stable source tree through its last assertion.** Do not
  create scratch directories or run fixture-generating tests alongside it, even
  under an ignored directory: the input reader observes directory metadata.
  Prepare evidence paths first and keep fixture generation separate from proofs.

- **A game agent page freezes its primary GPU module.** A successful dev side-module
  rebuild does not replace that artifact for a new agent drive. Build the primary
  module and restart the dev server before using a drive to verify Rust changes.

- **Read the operation's receipt before assuming its shape.** A targeted `layout`
  returns `node.space.viewport`. A delivered input can return `landError` when
  settling its effects fails; it need not reject the call. Keep that receipt so a
  proof checks the failure without sending the input twice.

- Reloading a wasm-bindgen validator through a new file-URL query can reuse Bun's cached
  JavaScript module. Load a fresh module instance and its matching wasm together; verify a
  declaration added during the dev session without another JSON edit. The table watcher
  uses a unique data URL for each primary build.

- **Declare a system framework used only through an Objective-C category.** An
  import can compile without leaving a symbol reference that links its framework.
  For example, the [limited-library picker](https://developer.apple.com/documentation/photos/phphotolibrary/presentlimitedlibrarypicker%28from%3Acompletionhandler%3A%29) is supplied by PhotosUI;
  without it, Manage crashes with an unrecognized selector. The Apple implementation
  manifest declares `"frameworks": {"PhotosUI": {"ios": "14.0"}}`. Check the built
  module’s load commands and exercise the picker on a device.

- **A selected file does not grant directory enumeration.** On Apple, retain a
  selected file’s parent with `O_SEARCH` for relative lookup. Opening it with
  `O_RDONLY` can fail under the file’s security scope even though the file itself
  is readable. Verify with a file selected from another app’s Documents folder;
  a simulator fixture in the app’s own container does not exercise this boundary.

- **A module name that fails on one target stops that target's boot as a resource.** A
  Contract resource that fails at launch refuses the web app's boot, and
  `attachedPorts`/`attachedDevices` fail `NotSupportedError` on the web by design (LLP
  1133.037 D3). Read such a name from `app.ts`, choosing it or its other target's name by
  the status (`attachedList ? attachedPorts({}) : getPorts({})`), as
  `docs/recipes/usb-hid-serial.md` does.

- **A cached JSON collection can lose another tab’s edits.** `atomicWriteFile`
  protects the replacement, not the read that produced it. Even a fresh read races
  another writer. Use SQLite statements and constraints for shared collections
  (`pattern list-detail`); close each connection in `finally` so other web tabs
  can acquire it.

- **`role="menu"` popovers are positioned at runtime.** On iOS and macOS the platform
  presents `role="menu"` as a native menu (and under the driver as a managed popover),
  so manual `top`/`left` coordinates on the menu box are overridden or drift. Anchor
  the menu via `popovertarget` on its trigger button instead of explicit offsets.

- **A `:hover` rule can override `:checked` or active button styling.** When a `:hover`
  background or color shares specificity with (or follows) a selected/checked state, it
  paints over the active state while the pointer stays on the control. Narrow hover
  selectors with `:not(:checked)` or `:not([aria-pressed="true"])`, or omit custom
  hover paint on platform controls.

- **Same-origin absolute `href` links open outside the router unless `target="_self"` is set.**
  A `link` with an `http(s)://` URL opens externally by default even on the same origin.
  Use a relative path (`path(...)`) for in-app routes, or add `target="_self"` when an
  absolute same-origin URL should navigate in place.

- **Web tests exercising `showNotification` need notifications granted.** Headless Chrome
  denies notification permission by default; add `prefer permission.notifications granted`
  at the top of the `.test.contract` test (or in an interactive `agent web` drive) before
  triggering the notification path.

- **Live clocks cannot feed a `resource` argument directly.** Passing `performanceNow()`
  into a `resource` argument re-requests data every frame (`analyze-resource-clock`), while
  reading `Date.now()` inside `app.ts` does not trigger reactive updates and excludes the
  resource from launch bake and SSR caching. Sample the current timestamp or day key into
  `state` inside an action or timer task (`task` `every(...)`), then pass that state to
  the `resource`.

- **A Markdown editor's `select` reports formatting state, not UTF-16 offsets.** On
  `textarea markup="markdown"`, `select` delivers `MarkdownSelection` (active formats,
  block type, link URL) rather than character indices. Listen to `selectionchange` (whose
  `InputEvent` carries live UTF-16 `selectionStart`/`selectionEnd`, flushed before `press`,
  `key`, and `atompress`) when you need source offsets, or call `format(id, ...)` and
  `setRangeText(id, text)` with omitted offsets to edit the live selection directly.
