Skip to content

Client hook/form parity: react/tanstack emit hooks for objects whose routes no longer exist #252

Description

@dmealing

Follow-up from #248 (PR #249), design spec §9c.

codegen-ts-react / codegen-ts-tanstack emit hooks/forms for any object (compilable today — they bind types/schemas that ARE emitted). After #248, queries/routes stop being emitted for a sourceless object, so any generated hook that fetches through those routes now dangles at runtime.

Align the client-side generator filters with hasAnyRdbSource (exported from @metaobjectsdev/codegen-ts as of #248) so hooks/forms are only emitted for objects that actually have a DB-backed API surface. Ergonomics follow-up, not a correctness bug (the generated code still typechecks). Ref: §9c.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions