You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: replace wait --components N with wait --component <name>
Wait for a specific component by display name instead of an arbitrary
count. More useful for agents that need to wait for a particular part
of the UI to render after a reload.
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,11 +125,11 @@ Components are labeled `@c1`, `@c2`, etc. You can use these labels or numeric ID
125
125
126
126
### Wait
127
127
128
-
Block until a React app is connected or a component count threshold is met. Useful in scripts or agent workflows where the daemon starts before the app:
128
+
Block until a condition is met. Useful in scripts or agent workflows where the daemon starts before the app:
129
129
130
130
```sh
131
-
agent-react-devtools wait --connected [--timeout 30] # Block until an app connects
Block until at least one React app connects via WebSocket. Resolves immediately if already connected. Default timeout: 30s. Exits non-zero on timeout.
26
26
27
-
### `agent-react-devtools wait --components N [--timeout S]`
28
-
Block until at least N components are present in the tree. Useful after a reload to wait for the app to fully render. Default timeout: 30s. Exits non-zero on timeout.
Block until a component with the given display name appears in the tree. Uses case-insensitive substring matching (same as `find`). Useful after a reload to wait for a specific part of the UI to render. Default timeout: 30s. Exits non-zero on timeout.
0 commit comments