Permalink
Browse files

Fix map resource state function

  • Loading branch information...
MrLeebo committed Sep 6, 2017
1 parent ce3cf19 commit 4783e384734813890604e4a59a9064287d5a5c6d
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/mapResourceStateToProps.js
  2. +1 −1 package.json
@@ -9,7 +9,7 @@ export default function withDefinition (name, definition = {}) {
const mountedAt = mapOptions.mountedAt || 'resource'
const resource = state[mountedAt] && state[mountedAt][name]
if (!resource || !resource.initialized) {
if (!resource || (!resource.initialized && !resource.busy && !resource.error)) {
return { payload: defaultPayload, [_metaTag]: true }
}
View
@@ -1,6 +1,6 @@
{
"name": "redux-supermodel",
"version": "0.16.0",
"version": "0.16.1",
"description": "A package of action creator functions and reducers that deal with the state management of REST-like APIs for you... all you need is a URL!",
"repository": "https://github.com/MrLeebo/redux-supermodel",
"main": "dist/index.js",

0 comments on commit 4783e38

Please sign in to comment.