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

[redux/entities] API path with child path not handled #292

Open
Geczy opened this issue Jun 23, 2017 · 3 comments
Open

[redux/entities] API path with child path not handled #292

Geczy opened this issue Jun 23, 2017 · 3 comments

Comments

@Geczy
Copy link

Geczy commented Jun 23, 2017

If I dispatch a path like this, then the / will error out my client and not cause it to dispatch.

A schema is expecting the variable name of order/statistics. Can we add handling for special characters like this on the schema entities?

const mapDispatchToProps = (dispatch, { limit }) => ({
  readList: () =>
    dispatch(
      resourceListReadRequest('orders/statistics', { _limit: limit })
    ),
})
@Geczy
Copy link
Author

Geczy commented Jun 23, 2017

For example:

https://api.github.com/user/repos?page=3&per_page=100

How would I call this using the API service? user/repos/

@Geczy
Copy link
Author

Geczy commented Jun 23, 2017

And how about this one?

https://jsonplaceholder.typicode.com/posts/1/comments

@moisespio
Copy link

Any news on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants