react-redux-toastr
Advanced tools
Comparing version 7.6.0 to 7.6.1
@@ -0,1 +1,13 @@ | ||
# v7.6.1 | ||
Fix `getState` is not a function | ||
# v7.6.0 | ||
Now you can define the toastr state path via a function | ||
``` | ||
<ReduxToastr | ||
{...anotherProps} | ||
getState={(state) => state.toastr} // This is the default | ||
/> | ||
``` | ||
# v7.5.2 | ||
@@ -2,0 +14,0 @@ [#245] Fix W3C validation errors |
@@ -234,3 +234,3 @@ "use strict"; | ||
return { | ||
toastr: ownProps.getState(state) | ||
toastr: ownProps.getState ? ownProps.getState(state) : state.toastr | ||
}; | ||
@@ -237,0 +237,0 @@ }, actions)(ReduxToastr); |
{ | ||
"name": "react-redux-toastr", | ||
"version": "7.6.0", | ||
"version": "7.6.1", | ||
"description": "react-redux-toastr is a React toastr message implemented with Redux", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -160,5 +160,5 @@ import React from 'react'; | ||
(state, ownProps) => ({ | ||
toastr: ownProps.getState(state), | ||
toastr: ownProps.getState ? ownProps.getState(state) : state.toastr, | ||
}), | ||
actions | ||
)(ReduxToastr); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
154443