digital-fuesim-manv icon indicating copy to clipboard operation
digital-fuesim-manv copied to clipboard

`AddLogEntryAction` is not deterministic

Open Dassderdie opened this issue 1 year ago • 4 comments

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.

Dassderdie avatar Dec 17 '22 13:12 Dassderdie