Skip to content
New issue

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

openapi-react-query: allow access to response headers #2127

Open
1 task done
OliverJAsh opened this issue Jan 30, 2025 · 2 comments
Open
1 task done

openapi-react-query: allow access to response headers #2127

OliverJAsh opened this issue Jan 30, 2025 · 2 comments
Labels
enhancement New feature or request openapi-react-query Relevant to openapi-react-query

Comments

@OliverJAsh
Copy link

Description

At the moment it's not possible to access response headers. Would it make sense to expose these somehow?

Proposal

Extra

@OliverJAsh OliverJAsh added enhancement New feature or request openapi-react-query Relevant to openapi-react-query labels Jan 30, 2025
@danilichev
Copy link

danilichev commented Jan 30, 2025

@OliverJAsh you can get access to response headers from middleware https://openapi-ts.dev/openapi-fetch/middleware-auth#middleware

@OliverJAsh
Copy link
Author

Thanks, I'm aware of that, but I don't see an ergonomic way to use that e.g. with useSuspenseQuery in a component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request openapi-react-query Relevant to openapi-react-query
Projects
None yet
Development

No branches or pull requests

2 participants