File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ # 1.0.3 Release
4
+
5
+ ** Summary:** Fixed unmount bug affecting IntersectionObserver.
6
+
3
7
# 1.0.2 Release
4
8
5
9
** Summary:** Deps update.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-soft-slider" ,
3
- "version" : " 1.0.2 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"description" : " Simple, fast and impartial slider" ,
5
5
"main" : " web.cjs.js" ,
6
6
"module" : " web.js" ,
81
81
"lodash.clamp" : " ^4.0.3" ,
82
82
"prop-types" : " ^15.7.2" ,
83
83
"react-spring" : " ^9.0.0-beta.8" ,
84
- "react-use-gesture" : " ^5.1.1 " ,
84
+ "react-use-gesture" : " ^5.1.2 " ,
85
85
"use-resize-observer" : " ^3.1.0"
86
86
}
87
87
}
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ export function Slider({
80
80
} , [ children . length , root ] )
81
81
82
82
// removing the observer on unmount
83
- useEffect ( ( ) => observer . current . disconnect , [ ] )
83
+ useEffect ( ( ) => ( ) => observer . current . disconnect ( ) , [ ] )
84
84
85
85
// setting the springs with initial position set to restPos:
86
86
// this is important when adding slides since changing children
Original file line number Diff line number Diff line change @@ -2674,10 +2674,10 @@ react-spring@^9.0.0-beta.8:
2674
2674
" @babel/runtime" " ^7.3.1"
2675
2675
prop-types "^15.5.8"
2676
2676
2677
- react-use-gesture@^5.1.1 :
2678
- version "5.1.1 "
2679
- resolved "https://registry.yarnpkg.com/react-use-gesture/-/react-use-gesture-5.1.1 .tgz#243339bf7619f0c726b6dc3715da023a330bcf81 "
2680
- integrity sha512-cz1XIw7oOi9AFtiQ7WXr4/FoVdB677A9lqxP1TUa4eqKHMF7Bu1qjOEeAzwYEl4tlusKz03y9TXw5amKQu27hQ ==
2677
+ react-use-gesture@^5.1.2 :
2678
+ version "5.1.2 "
2679
+ resolved "https://registry.yarnpkg.com/react-use-gesture/-/react-use-gesture-5.1.2 .tgz#3a43526c1174e97b20f966b86b6fb3ecc83dddb0 "
2680
+ integrity sha512-qOvwlru1avX6dRPHNWWJ1U6qoZf5ri6WohoIz3J3n0ieRJRzsbD1AO/bCuUgRklf6uwHnKCGzkdCgq5ilv7yRQ ==
2681
2681
2682
2682
react@^16.8.6 :
2683
2683
version "16.8.6"
You can’t perform that action at this time.
0 commit comments