react-uicomp
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -700,4 +700,2 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var _prevValue = React.useRef(_initialValue); | ||
var _ref = config !== undefined && config, | ||
@@ -739,9 +737,2 @@ onAnimationEnd = _ref.onAnimationEnd, | ||
React.useEffect(function () { | ||
if (initialValue !== _prevValue.current) { | ||
_update(_initialValue); | ||
_prevValue.current = _initialValue; | ||
} | ||
}, [initialValue]); | ||
var _targetObject = { | ||
@@ -748,0 +739,0 @@ value: props.value |
@@ -1,2 +0,2 @@ | ||
import React, { useContext, useMemo, useRef, useEffect, useState } from 'react'; | ||
import React, { useContext, useMemo, useRef, useState, useEffect } from 'react'; | ||
import { Route, Redirect, HashRouter, BrowserRouter, Switch, NavLink, useHistory, useLocation, useParams } from 'react-router-dom'; | ||
@@ -697,4 +697,2 @@ import { useTransition, animated, interpolate as interpolate$1, useSpring, config } from 'react-spring'; | ||
var _prevValue = useRef(_initialValue); | ||
var _ref = config$1 !== undefined && config$1, | ||
@@ -736,9 +734,2 @@ onAnimationEnd = _ref.onAnimationEnd, | ||
useEffect(function () { | ||
if (initialValue !== _prevValue.current) { | ||
_update(_initialValue); | ||
_prevValue.current = _initialValue; | ||
} | ||
}, [initialValue]); | ||
var _targetObject = { | ||
@@ -745,0 +736,0 @@ value: props.value |
{ | ||
"name": "react-uicomp", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Utility library for creating complex routing with beautiful animated ui components.", | ||
@@ -5,0 +5,0 @@ "author": "dipeshrai123", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
205383
2084