If we are allowed to undo.
Takes in these arguments instead of checking reactiveState directly so that its reactivity can be determined.
export const mayUndo = (historyStackLength, atStart) => historyStackLength > 0 && atStart; Copy
export const mayUndo = (historyStackLength, atStart) => historyStackLength > 0 && atStart;
If we are allowed to undo.
Takes in these arguments instead of checking reactiveState directly so that its reactivity can be determined.