-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
useTour re-render many times when i proceed to scroll #508
Comments
Hi @toduyen, thanks for open the Issue. Mind creating a minimal reproduction in a sandbox in order to allow others to debug your use-case and try to find a solution? Thanks! |
a bit of maybe related threads: |
could you please try updating to the last version? |
Hi @elrumordelaluz My latest version is 3.1.4 |
This is the TourProvider. mine. But every time I declare useTour in a certain part, every change like vertical and horizontal scrolling causes re-render as video. @elrumordelaluz |
could you please try to upgrade into v3.1.5? |
ok bro @elrumordelaluz |
great, please let me know. |
even though the multiple render issue has been resolved, I still get the setCurrentStep error and the console.log currentstep doesn't change. @elrumordelaluz with version 3.1.5 |
Too bad when I change the version it seems that useTour crashes ( setCurrentStep , currentstep ) Not woking @elrumordelaluz |
ok, rolled back the last changes, please use |
ok bro i will try your latest version |
did you tried the online demo here https://reactour.vercel.app, looking at the Please compare your use-case with the online demo. |
thank you i made it. because my source code uses the global window.innerWidth object. New resulted in re-rendering above. I have successfully fixed it but I also hope in future reactour updates to limit the re-render when moving to other steps. Thank you very much bro @elrumordelaluz |
Cool, so I am closing this issue, but feel free to re-open or create a new one in any case. |
I tried putting console.log where useTour() is declared and after each step my component is re-rendered many times and even when scrolling horizontally or vertically is re-rendered.
The text was updated successfully, but these errors were encountered: