We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using useReadContract with { query: { refetchInterval: 250 } }.
With every refresh, the browser sends an OPTIONS preflight request. The RPC response headers includes access-control-max-age: 600 .
I would expect that another OPTIONS preflight request would be sent only after 600 seconds.
For a dapp that relies on fast refetches, sending preflight requests unnecessarily hurts performance.
No response
wagmi
wagmi@2.12.25
viem@2.21.35
typescript@5
The text was updated successfully, but these errors were encountered:
Hello @studiov-dev.
Please provide a minimal reproduction using StackBlitz, TypeScript Playground (for type issues), or a separate minimal GitHub repository.
Minimal reproductions are required as they save us a lot of time reproducing your config/environment and issue, and allow us to help you faster.
Once a minimal reproduction is added, a team member will confirm it works, then re-open the issue.
Sorry, something went wrong.
No branches or pull requests
Check existing issues
Describe the bug
I'm using useReadContract with { query: { refetchInterval: 250 } }.
With every refresh, the browser sends an OPTIONS preflight request. The RPC response headers includes access-control-max-age: 600 .
I would expect that another OPTIONS preflight request would be sent only after 600 seconds.
For a dapp that relies on fast refetches, sending preflight requests unnecessarily hurts performance.
Link to Minimal Reproducible Example
No response
Steps To Reproduce
No response
What Wagmi package(s) are you using?
wagmi
Wagmi Package(s) Version(s)
wagmi@2.12.25
Viem Version
viem@2.21.35
TypeScript Version
typescript@5
Anything else?
No response
The text was updated successfully, but these errors were encountered: