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.

Question: is there a warmup time?

See original GitHub issue

question: sometimes .snapToItem(index) fails

I call this.carousel.snapToItem(index) within componentDidUpdate(). This sometimes works, but sometimes doesn’t (to “fix” this I put the call in the setTimeout).

I was just wondering if there was a “warm up” time for the carousel (or the underlying Views).

And if so, how can I check that it is “ready”.

Thanks

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:8
  • Comments:7

github_iconTop GitHub Comments

3reactions
wsliawcommented, Apr 22, 2019

you should try using firstItem props:

<Carousel
  firstItem={2}
/>
2reactions
fedu44commented, Jun 27, 2019

Yeah, I have the same issue. I don’t really know why that is happening. Prob the is a race condition that make that strange behavior to happen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is a Warm Up? - StretchCoach.com
I've put down here 5 to 15 minutes for the general warm up and another 10 or so minutes for static stretching and...
Read more >
Question: is there a warmup time? · Issue #483 · meliorence/react ...
I was just wondering if there was a "warm up" time for the carousel (or the underlying Views). And if so, how can...
Read more >
100 Warm-Up Questions for ESL Students - Road to Grammar
However, for most of the questions here, three to five minutes is recommended, plus another minute or two for the teacher to do...
Read more >
How much warmup time does a sensor need before use.
Answer: Specification level performance requires the sensor be thermally stabilized at a temperature between 21-28 C (70-82 F) and a relative ...
Read more >
Aerobic exercise: How to warm up and cool down - Mayo Clinic
Cooling down doesn't appear to help reduce muscle stiffness and soreness after exercise, but more research is needed. Although there's controversy about whether ......
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