Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on reloading a page with slide anchor #436

Open
BenjaminSYD opened this issue Mar 26, 2024 · 2 comments
Open

Crash on reloading a page with slide anchor #436

BenjaminSYD opened this issue Mar 26, 2024 · 2 comments

Comments

@BenjaminSYD
Copy link

Description

When using data-anchor with slides, if I reload a page with a slide anchor in the url the app crashes with error message "can't access property "item", r.activeSlide is null".

Link to isolated reproduction with no external CSS / JS

codesandbox link

Steps to reproduce it

  1. Open codesandbox link.
  2. Go to "Slide2" using right arrow button.
  3. Notice that "#section1/Slide2" is added to the url.
  4. Reload the page inside codesandbox (not codesandbox itself).
  5. Observe the application crash.

Versions

Versions can be found within the Codesandbox link provided.

@alvarotrigo
Copy link
Owner

I'm not able to reproduce this issue outside codesandbox.
Have you tried it outside?

@BenjaminSYD
Copy link
Author

I can reproduce it in a larger-scale project (I can't share it), but not in a minimalist one.

My assumption is that it could be a concurrency issue occurring in slower environments (heavy app or codesandbox). I will try to reproduce it again another time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants