Could we add a callback for slideToIndex ?
See original GitHub issueOur situation:
We want to slide to the first image, but the animation is not so cool. So we decide to add a mask. After slide event finish we close the mask…
But slideToIndex will call setState
, we know setState is asynchronous event. So I can’t know when the slide event finish…
Could we add a callback to slideToIndex?
I can help to create the PR, if you are ok with this.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Slider APIs and Callbacks - Confluence Mobile - Averta Docs
Here you can add or remove callback functions to the slider. First, select one type of callback function from the drop-down menu and...
Read more >How to use callback with useState hook in react [duplicate]
You can use useEffect/useLayoutEffect to achieve this: const SomeComponent = () => { const [count, setCount] = React.useState(0) React.
Read more >Callbacks in App Designer - MATLAB & Simulink
A callback is a function that executes when a user interacts with a UI component in your app. You can use callbacks to...
Read more >JavaScript Callback Functions – What are Callbacks in JS ...
So in this post, I would like to help you to understand what callback functions are and how to use them in JavaScript...
Read more >Asynchronous Callbacks in JavaScript
The Problem How do callbacks work in JavaScript? ... When we add the setTimeout() method to the second function, our execution steps look ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure, I will publish a new version this week.
@wszgxa published the new version today @ 0.8.13