Skip to content

keyboard-controller preset: returnedBy calls hook implementations outside a render #867

Open

Description

@danfry1

In the keyboard-controller preset added by #855, returnedBy calls hook implementations directly, outside a React render. A hook implementation that uses React state or context then breaks or behaves differently from the real package.

Acceptance criteria

  • No preset code calls a hook implementation outside a render.
  • A test fails if one does.

Depends on #855. Deferred from its review.

Activity

  1. added this to the 0.16.0 milestone on Nov 14, 2026
  2. added
    bug
    area:presets
    priority:low
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:presetsbugpriority:low

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions