You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been locked since it has been closed for more than 14 days.
If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest Wagmi version. If you have any questions or comments you can create a new discussion thread.
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)
[email protected]
Viem Version
[email protected]
TypeScript Version
typescript@5
Anything else?
No response
The text was updated successfully, but these errors were encountered: