Skip to content

cdp_component_state

Inspect a specific component’s full hook state by testID. Returns props, all hook values (useState, useRef, useForm, etc.), and auto-detects react-hook-form control objects. Use when cdp_store_state misses non-Redux state (forms, local state, atoms).

NameTypeRequiredDefaultConstraintsDescription
testIDstringYestestID of the target component
cdp_component_state(testID: <string>)