react-scrollama
react-scrollama copied to clipboard
preserve step triggering order if they fire out of sync
I am currently struggling with this issue. In my implementation, step enter / exit events are periodically triggering out of order (for reasons that are unclear to me). Instead of:
step 1 enter -> step 1 exit -> step 2 enter -> step 2 exit
I sometimes get:
step 1 enter -> step 2 enter -> step 1 exit -> step 2 exit
Or similar. For my use case I need the steps to trigger in the "expected" order. Do you have any suggestions on how to work around this issue?