@domonda/react-plumb
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -6,2 +6,10 @@ # Change Log | ||
## [2.0.1](https://github.com/domonda/domonda-js/compare/@domonda/react-plumb@2.0.0...@domonda/react-plumb@2.0.1) (2019-10-08) | ||
**Note:** Version bump only for package @domonda/react-plumb | ||
# [2.0.0](https://github.com/domonda/domonda-js/compare/@domonda/react-plumb@1.2.1...@domonda/react-plumb@2.0.0) (2019-10-04) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@domonda/react-plumb", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Simple state management and utilities for React inspired by Observables.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -26,2 +26,4 @@ "use strict"; | ||
function usePlumbState(props = {}) { | ||
// NOTE: plumb is either provided or not | ||
// eslint-disable-next-line react-hooks/rules-of-hooks | ||
const { plumb = PlumbContext_1.usePlumbContext(), stateIsEqual } = props; | ||
@@ -62,2 +64,4 @@ // we prefer using ref + forceUpdate to guarantee latest value delivery | ||
function useMappedPlumbState(props) { | ||
// NOTE: plumb is either provided or not | ||
// eslint-disable-next-line react-hooks/rules-of-hooks | ||
const { plumb = PlumbContext_1.usePlumbContext(), mapper, stateIsEqual } = props; | ||
@@ -64,0 +68,0 @@ // we prefer using ref + forceUpdate to guarantee latest value delivery |
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
18360
389