digital-fuesim-manv
digital-fuesim-manv copied to clipboard
`AddLogEntryAction` is not deterministic
The uuid is created in the reducer.
reducer: (draftState, { name, message }) => {
const logEntry = EocLogEntry.create(
draftState.currentTime,
message,
name
);
draftState.eocLog.push(cloneDeepMutable(logEntry));
return draftState;
},
export class EocLogEntry {
@IsUUID(4, uuidValidationOptions)
public readonly id: UUID = uuid();
We could either send the id with the action or scrap the id all together.