We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We are recommended to pass in an array of messages to expo server, to reduce the number of requests being made.
However, when I make a request where there is an array, the response object only displays one element.
I think this has to do with:
def extract_data(response) response.fetch('data').first end
Is there a reason for this? Why not simply return response.fetch('data')
response.fetch('data')
Even better, it may be a good idea to do:
def extract_data(response) data = response.fetch('data') (data.class == Hash) ? [data] : data end
So we can always expect an array response.
I'm not sure if I'm missing something, which is why I'm posting here.
The text was updated successfully, but these errors were encountered:
It looks like it may also apply to the error messages.
It only seems to look at the first response, rather than simply return the array of responses.
Sorry, something went wrong.
We also noticed this; I think it's an issue.
also seems like duplicate of #13
No branches or pull requests
We are recommended to pass in an array of messages to expo server, to reduce the number of requests being made.
However, when I make a request where there is an array, the response object only displays one element.
I think this has to do with:
Is there a reason for this? Why not simply return
response.fetch('data')
Even better, it may be a good idea to do:
So we can always expect an array response.
I'm not sure if I'm missing something, which is why I'm posting here.
The text was updated successfully, but these errors were encountered: