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

[BUG] - Issue with React Native and GET requests #25

Open
phil-hodgson-1st opened this issue Feb 20, 2019 · 1 comment
Open

[BUG] - Issue with React Native and GET requests #25

phil-hodgson-1st opened this issue Feb 20, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@phil-hodgson-1st
Copy link
Contributor

data: options.data || {},

There seems to be an issue here with React Native and a GET request that contains data: {} in the config. The request is never sent.

If I change the data in the config to data: undefined it works.

Works fine for POST requests just those pesky GET s

I'd recommend changing data: options.data || {} to data: options.data || undefined - @JakeSidSmith can you see any issue with this on web?

@phil-hodgson-1st phil-hodgson-1st added the bug Something isn't working label Feb 20, 2019
@JakeSidSmith
Copy link
Collaborator

Shouldn't need the || undefined, just use options.data and it may be undefined?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants