Skip to content

Conversation

@radist2s
Copy link
Collaborator

Adds context: option to --create-api-client-fn that generates a React Context-based API client, enabling React Compiler optimization.

Features:

  • Generate React Context for API client options (queryClient, requestFn, baseUrl)
  • Create API clients outside components with static hooks
  • Full React Compiler compatibility
  • Support for multiple API versions with separate contexts

@changeset-bot
Copy link

changeset-bot bot commented Jan 19, 2026

🦋 Changeset detected

Latest commit: 3ee49e2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@openapi-qraft/tanstack-query-react-plugin Minor
@openapi-qraft/react Minor
@openapi-qraft/cli Minor
@openapi-qraft/plugin Minor
@openapi-qraft/openapi-typescript-plugin Minor
@openapi-qraft/tanstack-query-react-types Minor
@openapi-qraft/eslint-plugin-query Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@radist2s radist2s force-pushed the feat/context-support branch from 759a5d5 to 1f796b9 Compare January 19, 2026 18:10
@radist2s radist2s force-pushed the feat/context-support branch from 33574be to 22e0284 Compare January 19, 2026 18:22
@radist2s radist2s force-pushed the feat/context-support branch from b4ee170 to 5a06832 Compare January 19, 2026 19:27
@github-actions

This comment has been minimized.

@radist2s radist2s force-pushed the feat/context-support branch from fcfe7d5 to 3ee49e2 Compare January 22, 2026 20:56
@github-actions
Copy link
Contributor

@check-spelling-bot Report

🔴 Please review

See the 📂 files view, the 📜action log, or 📝 job summary for details.

Unrecognized words (3)

STNGs
vir
XPh

To accept these unrecognized words as correct, you could run the following commands

... in a clone of the git@github.com:OpenAPI-Qraft/openapi-qraft.git repository
on the feat/context-support branch (ℹ️ how do I use this?):

curl -s -S -L 'https://raw.githubusercontent.com/check-spelling/check-spelling/v0.0.24/apply.pl' |
perl - 'https://github.com/OpenAPI-Qraft/openapi-qraft/actions/runs/21264611574/attempts/1'

OR

To have the bot accept them for you, comment in the PR quoting the following line:
@check-spelling-bot apply updates.

If the flagged items are 🤯 false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it,
    try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

🚂 If you're seeing this message and your PR is from a branch that doesn't have check-spelling,
please merge to your PR's base branch to get the version configured for your repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants