File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -541,7 +541,7 @@ Note that you will likely need to subscribe/unsubscribe to changes in order to t
541
541
Example:
542
542
543
543
``` js
544
- import React , { useContext } from ' react' ;
544
+ import React , { useContext , useEffect } from ' react' ;
545
545
import { CarouselContext } from ' pure-react-carousel' ;
546
546
547
547
export function MyComponentUsingContext () {
Original file line number Diff line number Diff line change @@ -59,11 +59,11 @@ interface CarouselStoreInterface {
59
59
readonly subscribe : ( func : ( ) => void ) => void
60
60
readonly unsubscribe : ( func : ( ) => void ) => void
61
61
readonly updateSubscribers : ( cb ?: ( state : CarouselState ) => void ) => void
62
- readonly subscribeMasterSpinner : ( src ) => void
63
- readonly unsubscribeMasterSpinner : ( src ) => false | object
62
+ readonly subscribeMasterSpinner : ( src : string ) => void
63
+ readonly unsubscribeMasterSpinner : ( src : string ) => false | object
64
64
readonly unsubscribeAllMasterSpinner : ( ) => void
65
- readonly masterSpinnerSuccess : ( src ) => void
66
- readonly masterSpinnerError : ( src ) => void
65
+ readonly masterSpinnerSuccess : ( src : string ) => void
66
+ readonly masterSpinnerError : ( src : string ) => void
67
67
readonly setMasterSpinnerFinished : ( ) => void
68
68
readonly isMasterSpinnerFinished : ( ) => boolean
69
69
}
You can’t perform that action at this time.
0 commit comments