Skip to content

Do Not Expose Schema through changed Event #236

Open
@philippfromme

Description

@philippfromme

What should we do?

We should not expose internal state through the changed event.

Why should we do it?

Users should not have access to internal state (cf. #234). Getting the schema should only be possible through saveSchema.

formEditor.on('changed', ({ schema }) => {
  // schema !== formEditor.saveSchema();
});

Related to #234

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions