Skip to content

Expose All ReactQuery Options for Hooks#596

Open
corbanbrook wants to merge 2 commits intomasterfrom
expose-query-options
Open

Expose All ReactQuery Options for Hooks#596
corbanbrook wants to merge 2 commits intomasterfrom
expose-query-options

Conversation

@corbanbrook
Copy link
Collaborator

Currently we are only exposing a small subset of react query options that we allow to be passed into hooks. This changes that by allowing the full options.

Replace custom HooksOptions interface (disabled, retry only) with full
UseQueryOptions and UseInfiniteQueryOptions types. Hook defaults are set
first and can be fully overridden via the options spread. Update checkout
package consumers from disabled to enabled.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@corbanbrook corbanbrook requested review from a team and 0xsequence-bot as code owners March 25, 2026 21:27
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 25, 2026

Deploying web-sdk-react-example with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3d786de
Status: ✅  Deploy successful!
Preview URL: https://fef1b799.web-sdk-react-example.pages.dev
Branch Preview URL: https://expose-query-options.web-sdk-react-example.pages.dev

View logs

The internal QueryHookOptions/InfiniteQueryHookOptions types are just
Partial wrappers around React Query types. Consumers can use the
standard React Query types directly, so no need to export ours.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant