diegohaz/arc

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

Open

#292 opened on Jun 23, 2017

 (3 comments) (3 reactions) (0 assignees)JavaScript (291 forks)github user discovery
PR welcomeenhancementhelp wanted

Repository metrics

Stars
 (2,924 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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 })
    ),
})

Contributor guide