Skip to content

Commit 3b1f86c

Browse files
I think useEffect works now
1 parent 73d0e33 commit 3b1f86c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package/linkFiber.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ module.exports = (snap, mode) => {
8787
// we only want to changeUseState (which updates and sends the snapshot)
8888
// on the last item in the memoizedState chain. This makes sure it doesn't double-push
8989
// values to the timeline.
90-
if (memoizedState.next === null) {
90+
if (astHooks[index + 2] === undefined) {
9191
changeUseState(memoizedState);
9292
}
9393
// memoized[astHooks[index]] = memoizedState.memoizedState;

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) {
3232
current.queue.dispatch(target.state[hooks[index]]);
3333
// Reassign the current value
3434
current = current.next;

0 commit comments

Comments
 (0)