-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Deleting a global option persists for all instances #250
Comments
Thank you! Will get to this asap. If you get to it before me/would like to contribute, here's how. |
This should be fixed as of |
@alex-cory unfortunately I'm still experiencing issues with this in |
Apologies for missing that. Will get it merged today. |
should be fixed in |
Possibly related to #135
Describe the bug
When deleting/overwriting a global option in one instance of useFetch, the global options are then permanently modified across all instances.
Following the example in the README:
This line:
delete globalOptions.headers.Accept
Will delete the Accept header for all useFetch instances across an app.
https://codesandbox.io/embed/goofy-bird-yhon5?fontsize=14&hidenavigation=1&theme=dark
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect that modifying the global options in an instance of useFetch would create a local copy and would not affect the global options in any other instances.
The text was updated successfully, but these errors were encountered: