Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Assigning default value for Ref type in a schema can cause sideeffects #266

@rkdrnf

Description

@rkdrnf

Assigning a default value for a Ref type can cause side effect when a user modifies the value of the property later.

If a user does not assign explicit default values for component properties when adding a new component to the entity, Ref type properties get assigned the default value of the defined schema, which makes modifying ref value later causes default value itself to be changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions