-
-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more robust slideby classifier function handling (#2642)
When the classifier function is pure everything works fine, but with state, `slideBy` might end up in an infinite loop. The reason: `slideBy` calls the classifier two times on the same item. If the second call returns a different value, `slideBy` will not advance anymore and iterate indefinitely on the same item.
- Loading branch information
1 parent
cc4b4b6
commit a09f8cc
Showing
2 changed files
with
13 additions
and
0 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