Open
Description
Describe the bug
I'm using a API that needs to send a dynamic value on header. But when this value changes, the function that overwrite the global options use the old value.
https://codesandbox.io/s/usefetch-use-http-todo-list-app-managed-state-forked-b6i4w?file=/src/index.js
To Reproduce
Steps to reproduce the behavior:
- Click on "Change dependency"
- See "dependency: 0" changing next to the button
- See console.log where the value don't change
Expected behavior
The overwite global options function must use updated values.
Metadata
Metadata
Assignees
Labels
No labels