-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(carousel): re-implement with committed ref
Re-implements the reference to the interval value with a committed ref, ensuring that the interval value we're accessing is safe when accessing the value inside of effects. This in turn fixes the consistency issues within our unit tests (although I still ended up increasing the time being ticked to give a little more leeway for the events being fired). This also includes a re-work of traversing the children to grab the interval values at the same time that we count the children, removing that potential side effect from the rendering logic.
- Loading branch information
Showing
2 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters