Exposes a public API (methods, getters, state handles…) to parent components via exportsRef.
This hook MUST be called at the top level of a component function — never inside loops, conditions, nested functions, or callbacks.
The call order of all hooks is strictly fixed across every refresh; reordering calls will corrupt internal state.
Only oneuseExports per component — later calls override earlier ones.
The exporter function runs on every refresh.
Exposes a public API (methods, getters, state handles…) to parent components via
exportsRef.This hook MUST be called at the top level of a component function — never inside loops, conditions, nested functions, or callbacks. The call order of all hooks is strictly fixed across every refresh; reordering calls will corrupt internal state.
Only one
useExportsper component — later calls override earlier ones. The exporter function runs on every refresh.