-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pagination 'carouselRef' warning when carouselRef is set #198
Comments
Hi @wkwyatt, That's because the carousel reference isn't available before the component has been fully initialized, and If you take a look at the example's source code, you'll see that I've used a simple trick to prevent this error:
Does this solves the issue for you? |
Thanks it does, as I wrote the post I came up with this solution but was unsure if there was a better way.
But thank you for responding so quickly :) |
You're welcome ;-) I would also like to find a better solution, but that's the best I was able to come up with for now... By the way, |
Yea you are right! Just fixed it lol...thats what I get for responding as soon as I woke up. |
Hi @archriss,
I have a snap-carousel component with pagination (GREAT repo by the way!馃憤馃徑 ). And everything works except I get this annoying error that the Pagination carouselRef isn't set when
tappableDots
istrue
, when it actually is set..... and it works. So the warning error is the only issue.The text was updated successfully, but these errors were encountered: