Open Secretmapper opened 8 years ago
More examples would be great! Especially for use with the various middlewares. For example right now I'm using this with the promise middleware:
dispatch({ type: 'action', payload: { promise: promise(id).then(response => { return (action, dispatch, getState) => { dispatch({ ...action, payload: response }) dispatch({ type: 'action', payload: response, meta: { schema: Schemas.MySchema } }) } })
And I'm not sure if this is the best way of doing this.
More examples would be great! Especially for use with the various middlewares. For example right now I'm using this with the promise middleware:
And I'm not sure if this is the best way of doing this.