You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// prevState contains the states of the snapshots we are jumping FROM, not jumping TO
41
-
(prevState)=>{
42
-
Object.keys(prevState).forEach((key)=>{
43
-
// the if conditional below does not appear to ever be reached if all states are defined - leaving code in just in case codebases do have undefined states
44
-
// if (target.state[key] !== undefined) {
45
-
// target.state[key] = undefined;
46
-
// }
47
-
});
48
-
returntarget.state;
49
-
},
50
+
(prevState)=>target.state,
51
+
// (prevState) => {
52
+
// Object.keys(prevState).forEach((key) => {
53
+
// // the if conditional below does not appear to ever be reached if all states are defined - leaving code in just in case codebases do have undefined states
54
+
// // if (target.state[key] !== undefined) {
55
+
// // target.state[key] = undefined;
56
+
// // }
57
+
// });
58
+
// return target.state;
59
+
// }
60
+
50
61
// Iterate through new children after state has been set
0 commit comments