axios-module icon indicating copy to clipboard operation
axios-module copied to clipboard

Docs: Axios interceptors helpers

Open gplusdotgr opened this issue 4 years ago • 6 comments

Could you explain which helper corresponds to which Axios interceptor? It's not obvious and there's no mention of this in the documentation : https://axios.nuxtjs.org/helpers/ Some examples would be tremendously helpful

gplusdotgr avatar Feb 01 '21 20:02 gplusdotgr

PR welcome :)

Screenshot 2021-02-02 at 11.39.00.png

https://github.com/nuxt-community/axios-module/edit/master/docs/content/en/helpers.md

atinux avatar Feb 02 '21 10:02 atinux

@Atinux Bonjour Seb, how can I improve the documentation without the necessary information on when/how the hooks in question? suggestions bienvenues ! (look at the source code?)

gplusdotgr avatar Feb 02 '21 10:02 gplusdotgr

Looking at the source code is always the best to understand how a Nuxt module works :)

See https://github.com/nuxt-community/axios-module/blob/master/lib/plugin.js#L23-L34

atinux avatar Feb 02 '21 10:02 atinux

Thank you!

gplusdotgr avatar Feb 02 '21 10:02 gplusdotgr

You can keep this one open if you want to open a PR to resolve this issue :wink:

atinux avatar Feb 02 '21 10:02 atinux

@Atinux good idea, you can assign to me.

gplusdotgr avatar Feb 02 '21 13:02 gplusdotgr