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

add ajax.js an export #4557

Closed
wants to merge 2 commits into from
Closed

Conversation

iwarshak
Copy link

In Phoenix 1.5.X, the Ajax object was exported from phoenix.js and can be used as a helper function for basic xhr requests. This was really helpful for one-off requests without having to either 1) pull in a 3rd party dependency, or 2) reinvent the wheel.

This PR adds Ajax.js to the exports so it functions as it did in 1.5

@chrismccord
Copy link
Member

Unfortunately we only exported it for the test env and it was never officially public. I agree it's not for dependency free Ajax, but the fetch API exits now and can be polyfilled, so you may be better suited there. Making it officially public would be a longer term maintenance burden so not something we should open up. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants