Skip to content

Generate server-only proxies without React hooks - #140

Merged
woksin merged 3 commits into
mainfrom
feature/112-skip-react-hooks
Sep 29, 2026
Merged

woksin merged 3 commits into
mainfrom
feature/112-skip-react-hooks

Conversation

@woksin

@woksin woksin commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Added

  • --skip-react-hooks (programmatic option skipReactHooks) for the proxy generator: emits server-only proxies with no @cratis/arc.react import and no static use*/when hooks on commands and queries, so projects that only need the typed HTTP client do not need React installed. Default output is unchanged.

Review: Opus-only (same-provider) review.

Closes #112

Generated commands and queries omit the @cratis/arc.react import and the
static use/when hooks when skipReactHooks (CLI: --skip-react-hooks) is set.
The default output is unchanged.

Refs #112
@woksin woksin added the minor New backward-compatible capabilities label Sep 29, 2026
@woksin woksin self-assigned this Sep 29, 2026
@woksin
woksin merged commit 5947930 into main Sep 29, 2026
5 checks passed
@cratis-direct
cratis-direct Bot deleted the feature/112-skip-react-hooks branch September 29, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor New backward-compatible capabilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make React hooks in generated proxies opt-in

1 participant