diegohaz/arc

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

Aperta

#292 aperta il 23 giu 2017

 (3 commenti) (3 reazioni) (0 assegnatari)JavaScript (291 fork)github user discovery
PR welcomeenhancementhelp wanted

Metriche repository

Star
 (2924 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor