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.

Options object doesn't work after migration

See original GitHub issue

Options object doesn’t work after migration from embla-carousel-react to embla-carousel/react

my config:

const [EmblaCarouselReact, embla] = useEmblaCarousel({
    align: 'start',
    slidesToScroll: 1,
    loop: true,
});

Loop doesn’t work. If emblaCarousel loads for the first time, after dragging I get “maximum call stack size exceeded” error.

image

It doesn’t work on embla-carousel-react v2.0.3 either.

I tried to migrate from version: ^1.3.3

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
damian-balascommented, Jul 23, 2020

SOLUTION

I found the problem! It’s because of i18n, which uses react suspense. 😃 I think I can fix it on my own now!

1reaction
davidjerlekecommented, May 14, 2021

Nice to see a rtl implementation of Embla Carousel 👍. Thank you for sharing the link.

Try updating to the latest version and run embla.reInit() when removing display: none and the issue should go away. Let me know how it goes.

Best, David

Read more comments on GitHub >

github_iconTop Results From Across the Web

Options object doesn't work after migration · Issue #79
Options object doesn't work after migration from embla-carousel-react to embla-carousel/react. my config: const [EmblaCarouselReact, embla] = useEmblaCarousel( ...
Read more >
EF Data migrations won't detect changes when adding new ...
After doing this, I should be able to create a new initial migration. But when i try to create create a new migration,...
Read more >
Troubleshoot live migration issues - Windows Server
Open the Hyper-V Manager console and select Virtual Switch Manager. If the virtual switch doesn't exist, create or rename it with the same...
Read more >
Unable to migrate one user account and not getting any ...
When i try to migrate a user account, its not getting migrated. Output shows as selected object 1 migrated 0.. Summary Information. Directory...
Read more >
MigrationWiz Error - Missing items/Items do not match
Check to see if the missing items are special items that we do not migrate. The list of ite​​ms we do not migrate...
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