Axios
Is it possible to use a never version than axios 0.26 to implement a data provider?
5 Replies
Hi @.krm42. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
The information extracts do not specify a maximum version for
axios
to be used with refine. The tutorial from the refine documentation (https://refine.dev/docs/tutorial/understanding-dataprovider/create-dataprovider/) uses axios@0.26
as an example. However, it does not explicitly state that higher versions are not supported.
It's generally recommended to use the latest stable version of a package to benefit from the latest features and security updates. However, you should also check the package's release notes and refine's compatibility to ensure there are no breaking changes that could affect your application.
Here's how you install axios
in your project as per the tutorial:
If you want to install the latest version, you can omit the version number:
Remember to test your application thoroughly after upgrading to a newer version.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@968093986755600414> kapa.ai is still learning and improving, please let us know how it did by reacting below
sensitive-blueOP•15mo ago
it does not work
Hello, @.krm42 . You are free to use any version of the axios you want. Do you have a specific error you're experiencing?
sensitive-blueOP•15mo ago
Typescript error, something about nonmatching parameters. ended up implementing my own dataprovider