-
Notifications
You must be signed in to change notification settings - Fork 384
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
Use fetch
instead of ajax
for HTTP requests
#69
Comments
Pros:
Cons:
|
@alexfedoseev If we assumed we would not need to make remote calls on the server (rending the JS using Rails engine), then is fetch a better choice? |
Haha, I forgot that we're outside of Node here 😅 |
Also, if you were on node, you could use this |
@mapreal19 Could you take a try at this one and submit a PR? |
@justin808 sure! |
Check out shakacode/react_on_rails#16 (comment) |
window.fetch
seems the way to go for http requests.Resources:
The text was updated successfully, but these errors were encountered: