Skip to content

fix: use local axios instance instead of global #2104

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LeTamanoir
Copy link

@LeTamanoir LeTamanoir commented Nov 24, 2024

this is not to be merged in master, but rather be added on top of 1.2.0

@reinink
Copy link
Member

reinink commented Dec 13, 2024

What's the purpose of this change?

@wfern
Copy link

wfern commented Dec 13, 2024

@reinink he explains it in detail in the issue: #2103

@pascalbaljet
Copy link
Member

I get the problem, but changing this would be a breaking change, as I know that people are relying on the global Axios instance, for example, to set additional headers to send with each request.

If you can refactor it to something that you can pass as an option/resolver into createInertiaApp(), then I'm fine with it.

@pascalbaljet pascalbaljet added the needs more info/work Needs more info from the author or additional work to get merged label Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info/work Needs more info from the author or additional work to get merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants