-
Notifications
You must be signed in to change notification settings - Fork 147
Open
Labels
Description
Describe the feature
ofetch/$fetch same as native fetch is stateless by-design. This has safety advantages when ofetch is deeply integrated into tools such as Nitro and Nuxt and prevents global side effects and potential header leaks.
However, there are also good use cases of having stateful fetch instances:
- Sharable headers
- Cookie jar (Set cookies #382)
- Global interceptors such as auth
I think $fetch.withState() could be useful.
MickL, 87xie, niicojs, kamil-kubiczek, singularium13 and 18 more