Repository navigation
Open
16 / 1816 of 18 issues completedDescription
TL;DR
v1.0.0 makes the hook interfaces predictable. The sub-issues below track each change, one PR per sub-issue.
Base branch
Open every v1 PR against v1-base, not main. Breaking changes are stacked on v1-base, so the major version is bumped only once. v1-base first ships release candidates (1.0.0-rc.x) for internal testing, and is merged into main once every sub-issue is closed and the rc holds up.
Direction
- A hook's name tells who owns the state.
*Statehooks own it,*Valuehooks derive a value from one you pass, and*Callbackhooks wrap a function you pass. - Required values are positional arguments, and optional behavior goes in a final options object. The
*Callbackhooks take one options object (Standardize hook parameter shapes #527, Decide the Callback hooks' argument shape and where the internal hooks live #590). - Time options carry their unit in the name, such as
debounceMs,throttleMsanddelayMs. - Renamed hooks keep the old name as a deprecated alias.
useDebounceanduseThrottlestay available but are deprecated.
Before opening a PR
Changing a public export or its JSDoc also changes generated files, and CI fails when they are stale.
- Run
yarn docs:gen <name>to regenerate the English API page from JSDoc, andyarn skill:gento regenerate the agent skill. - Run
yarn test:docsandyarn test:skill. They also catch guides that still name a renamed or removed export. - Update the translated pages (
ko,ja,zh-Hans,es) next to the English page.
Order
Some sub-issues touch the same hooks as an open PR. Start them after that PR is merged into v1-base to avoid conflicts. Each sub-issue lists what it waits for.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 18 sub-issues
Metadata
Metadata
Assignees
Labels
No labels
Activity
@no-docs#600