@reactuses/core 5.0.1 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -798,15 +798,6 @@ const useDraggable = (target, options = {})=>{
798
798
  x: 0,
799
799
  y: 0
800
800
  });
801
- React.useEffect(()=>{
802
- var _options_initialValue;
803
- setPositon((_options_initialValue = options.initialValue) != null ? _options_initialValue : {
804
- x: 0,
805
- y: 0
806
- });
807
- }, [
808
- options.initialValue
809
- ]);
810
801
  const [pressedDelta, setPressedDelta] = React.useState();
811
802
  const filterEvent = (e)=>{
812
803
  if (options.pointerTypes) {
package/dist/index.mjs CHANGED
@@ -791,15 +791,6 @@ const useDraggable = (target, options = {})=>{
791
791
  x: 0,
792
792
  y: 0
793
793
  });
794
- useEffect(()=>{
795
- var _options_initialValue;
796
- setPositon((_options_initialValue = options.initialValue) != null ? _options_initialValue : {
797
- x: 0,
798
- y: 0
799
- });
800
- }, [
801
- options.initialValue
802
- ]);
803
794
  const [pressedDelta, setPressedDelta] = useState();
804
795
  const filterEvent = (e)=>{
805
796
  if (options.pointerTypes) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactuses/core",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "license": "Unlicense",
5
5
  "homepage": "https://www.reactuse.com/",
6
6
  "repository": {