Skip to content

Warning: [antd: Modal] Static function can not consume context like dynamic theme. Please use 'App' component instead. #222

@AntoineMaille

Description

@AntoineMaille

I try using the editor in a react router V7 project but when i init the component and try to display a modal (example : delete a decision table), i get this error and the modal does not show.

Warning: [antd: Modal] Static function can not consume context like dynamic theme. Please use 'App' component instead.

EDIT: I've made a react 18 app and the editor works (although the warning stays which is not the source problem). The problem must be with React19 but i have not figured out what.

EDIT 2 : indeed in a fresh React19 app the editor Modals does not work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions