Open ariel-walley opened 2 years ago
generateHistory() runs every time you switch tabs in the History menu. Could the JSX be pushed to state or maybe the function only run if the history object actually changes?
Is it efficient to have the allHistory array? Would it be better to compile all of the separate histories together and sort by timestamp or would this be more computationally expensive than having an extra variable?
is more efficient than