question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could we add a callback for slideToIndex ?

See original GitHub issue

Our 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:closed
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
xiaolincommented, Feb 14, 2019

Sure, I will publish a new version this week.

1reaction
xiaolincommented, Feb 19, 2019

@wszgxa published the new version today @ 0.8.13

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found