Skip to content

Undo / Redo not working as expected on Strict Mode #279

Open
@brauliodiez

Description

@brauliodiez

We have temporarily disabled strict mode on the main:

./src/main.tsx

ReactDOM.createRoot(document.getElementById('root')!).render(
- <React.StrictMode> 
   <CanvasProvider>
      <ModalDialogProvider>
        <App />
      </ModalDialogProvider>
    </CanvasProvider>
- </React.StrictMode> 

);

Undo Redo does not work well (just add two snapshots), in the following cases:

  • Delete a shape (toolbar click button).
  • Inline edit on a shape an clicking outside.

Further research to be developed

We have just workarounded temporarily

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Needs definition

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions