-
Notifications
You must be signed in to change notification settings - Fork 3
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 fix to queries #38
base: master
Are you sure you want to change the base?
Conversation
106ead7
to
a644175
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can not understand what are u trying to do. It should work simple. And can not cover everything.
@@ -97,7 +97,7 @@ function getMetaFromResource(resource) { | |||
} | |||
return { | |||
reducer: 'object', | |||
...resource, | |||
...omit(resource, 'queries'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can u please explain why should it omit something? in resource u have data from api. It should not be omited
@@ -177,7 +177,7 @@ export function makeResourceActions(resource, dispatch) { | |||
const meta = getMetaFromResource(resource) | |||
const actions = { | |||
create: makeRequestAction('POST', meta, dispatch), | |||
fetch: makeRequestAction('GET', meta, dispatch), | |||
fetch: makeRequestAction('GET', { ...meta, queries: resource.queries }, dispatch), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
strange
8a97f3d
to
137191b
Compare
137191b
to
afe9dcf
Compare
a35559b
to
804a4cf
Compare
No description provided.