-
Notifications
You must be signed in to change notification settings - Fork 23
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
allow responses w/o data envelope. workaround for #6 until #19 is done #22
Conversation
could you help me with how to build the new files in lib/ from your changes in src/? 😅 |
I think the simplest way is to clone this repo to your localhost, and then run Then you can change your project's package.json to say
Does that make sense? |
Got it to work. It works fine without a data envelope, but with the data envelope I had in before for testing purposes it throws
|
Ah ha, excellent, thanks, that latest commit should fix that |
now it throws the error at TypeError: otherInfo.delete is not a function |
d'oh |
we're getting there... if ('data' in originalPayload) delete otherInfo.data; Which works but results in the new error
|
😢 I'll try again tomorrow morning. This file is weird. I don't know why there are two |
1be89ac
to
6570f41
Compare
I think that's yet another response format function that won't be solved Are you able to change your ApiClient to ensure that the response data is On Wed, Jul 20, 2016 at 6:55 PM Max Mitschke [email protected]
|
6570f41
to
cea5966
Compare
grep -r 'action.payload.data' src/
returns only these two lines now, so I believe this should cover people who have responses without a data envelope. I need someone to test this though before I feel happy merging it in. @mxmtsk would you be interested in trying this branch out with your project? I could merge this as 4.3.0 this week if it works for you.