Skip to content

Commit 13a4a14

Browse files
enabled time travel with useEffect
1 parent 93e2dfd commit 13a4a14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/timeJump.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = (origin, mode) => {
2828
let index = 0;
2929
const hooks = returnState();
3030
// while loop through the memoize tree
31-
while (current) {
31+
while (current && current.queue) { // allows time travel with useEffect
3232
current.queue.dispatch(target.state[hooks[index]]);
3333
// Reassign the current value
3434
current = current.next;

0 commit comments

Comments
 (0)