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
// used in action.tsx to format the return data of findDiff into a react component, not needed since the return of findDiff in History.tsx is simple a divs html
5
7
importReactHtmlParserfrom'react-html-parser';
8
+
// formatting findDiff return data to show the changes with green and red background colors, aligns with actions.tsx
// the !== null conditional is necessary here for correctly displaying react hooks because TypeScript recognizes 0 and "" as null - DO NOT REMOVE
185
186
if(memoizedState.memoizedState!==null){
186
187
hooksStates.push({
187
188
component: memoizedState.queue,
@@ -399,15 +400,12 @@ function createTree(
399
400
state.state,
400
401
state.component
401
402
);
402
-
// why is this re-writing componentData.hooksIndex every time? instead, should remove from loop and try to re-write it to be whichever state is being updated
0 commit comments