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

additional information regarding axios in readme #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,29 @@ export class AppComponent {

You can then add any of the Instantsearch widgets [here](https://www.algolia.com/doc/guides/building-search-ui/widgets/showcase/angular/) that are [supported](#widget-compatibility) by the adapter.

## Axios

Behind the scenes, we are using axios as the promised based HTTP client. This may cause conflicts with systems that already employ axios and have default configurations set up.
If you are making direct default changes to axios

```
import axios from 'axios'

axios.interceptors.response.use((response) => response.data)

```

You'll need to change these to

```
import axios from 'axios'

const instance = axios.create()

instance.interceptors.response.use((response) => response.data)

```

## Widget Specific Instructions

### `hierarchicalMenu`
Expand Down