developit / developit/redaxios

Support axios Config Defaults

Open
#62 2 comments 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.9k
Forks
104
PR merge metrics
No merged PRs in 30d

Description

https://github.com/axios/axios#config-defaults

As ["the goal is to support most/all features"](https://github.com/developit/redaxios/issues/14#issuecomment-615290952), [Config Defaults](https://github.com/axios/axios#config-defaults) also seems to be an important feature.

Currently, something like:

```js
instance.defaults.headers.get['Content-Type'] = 'application/json'`
```

Results in:

```console
Uncaught TypeError: instance.defaults.headers is undefined
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.