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.

Cannot traverse ranges with spectacle-code-slide. Missing slideIndex prop

See original GitHub issue

I’m playing around with spectacle and @thejameskyle’s spectacle-code-slide, but it doesn’t entirely work. Its not possible to go ‘up’ and ‘down’ between the ranges on a code slide.

I was able to debug and see that CodeSlide’sisSlideActive method is broken because the slideIndex prop is not passed down: https://github.com/thejameskyle/spectacle-code-slide/blob/master/src/CodeSlide.js#L122

So in order to get the ability to go “up” and “down” within the ranges of a CodeSlide, you can return true from isSlideActive, but then as you’d expect, the up and down affects every slide and not just the active one.

@kenwheeler, I can send a PR for the fix, but I’d like to hear how you think it should be addressed.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
amaitycommented, May 11, 2017

@ericvicenti how do I include spectacle-code-slide in spectacle-boilerplate? I am a complete noob.and struggling to get codeslide up and running since the last two days.

1reaction
kenwheelercommented, May 5, 2017

@ericvicenti yeah wrapping slides has historically been a problem. I should probably get the next version to supply all this with context.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Transverse Ranges - Wikipedia
The Transverse Ranges are a group of mountain ranges of southern California, in the Pacific Coast Ranges physiographic region in North America.
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