From dfaef64e26eacec94a8e8b12a318218de0114110 Mon Sep 17 00:00:00 2001 From: Edward Sparks Date: Wed, 27 Apr 2022 13:46:13 +0100 Subject: [PATCH] additional information regarding axios in readme --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index c7e2595..25caa80 100644 --- a/README.md +++ b/README.md @@ -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`