Skip to content

Support pre-dispatch hook registration in app! #434

Open

Description

@prk-Jr

User story

As an application author using app!, I want to install a pre-dispatch hook while retaining generated routes, middleware, state, manifest introspection, stores, logging and application identity, so that reserved-namespace interception does not require duplicate router configuration.

Acceptance criteria

  • Define and document an optional macro argument for hook installation, including value/Arc behavior and duplicate-registration semantics.
  • Existing macro syntax and generated application behavior remain compatible.
  • Tests demonstrate terminal and continuation behavior and preservation of every generated metadata/router surface.
  • No runtime-specific dependencies enter core or macros.

Affected area

Macros (#[action], #[app])

Follow-up to the routing-workaround finding in #403; that PR documents and tests the explicit manual reconstruction required today.

Activity

  1. self-assigned this
    on Oct 22, 2026
  2. added theissue type on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions