This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Description
I have encountered an issue where the history size shrinks while a traversal is in-flight. This could happen any time you hold traversals while you're switching screens (perhaps for an animation) and mash the back button quickly. It appears the issue is noted:
8a9325b#diff-0351f5577272525804cf0292acb7fe1bR283
#195 #240
but I don't think the solution of simply noop-ing the traversal is entirely correct. When this happens, the dispatcher never gets to execute the next pending traversal. It may be a good idea to noop the traversal, but the dispatcher still needs to flush traversals so that the whole thing doesn't grind to a halt. Another option might be to continue dispatching the traversals but not pop the history if Flow notices the history has changed size.
A workaround is to not hold onto traversals, but that's not really what you want to do long term.