Skip to content

v0.1.4

Compare
Choose a tag to compare
@sciamp sciamp released this 02 Aug 10:30
· 33 commits to master since this release
  • Add requestsLog section in the store state

    • requestsLog is an array of requests ids
    • we add a request ids to the list when we receive a
      REDUX_HTTP_CLIENT_REQUEST action
    • We need this lists to have the selectors that work on a slice
      of the state before the requests results are written function
      properly (i.e. loadingSelector)
    • since we have a list of the requests ids we changed the results
      slice of the state to be a map over ids (as the requestsMetadata)
      As a side effect of this the takeNext reducer and the
      beccaccinoSelector have a more straightforward implementation.
  • Rename requests object in state to results

    • The object was not storing the requests but the results
      received, we were setting the requests only in the response
      branches of the reducer.
      (cf. src/redux-http/reducer.ts)