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

Add fix to queries #38

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

NikitaMazur
Copy link
Contributor

No description provided.

Copy link
Contributor

@alexgul4enko alexgul4enko left a 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'),
Copy link
Contributor

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),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strange

@NikitaMazur NikitaMazur force-pushed the queries_fix branch 3 times, most recently from 8a97f3d to 137191b Compare February 26, 2020 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants