File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ module.exports = (snap, mode) => {
87
87
// we only want to changeUseState (which updates and sends the snapshot)
88
88
// on the last item in the memoizedState chain. This makes sure it doesn't double-push
89
89
// values to the timeline.
90
- if ( memoizedState . next === null ) {
90
+ if ( astHooks [ index + 2 ] === undefined ) {
91
91
changeUseState ( memoizedState ) ;
92
92
}
93
93
// memoized[astHooks[index]] = memoizedState.memoizedState;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ module.exports = (origin, mode) => {
28
28
let index = 0 ;
29
29
const hooks = returnState ( ) ;
30
30
// while loop through the memoize tree
31
- while ( current ) {
31
+ while ( current && current . queue ) {
32
32
current . queue . dispatch ( target . state [ hooks [ index ] ] ) ;
33
33
// Reassign the current value
34
34
current = current . next ;
You can’t perform that action at this time.
0 commit comments