Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

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

Open
rkdrnf opened this issue Oct 17, 2020 · 0 comments
Open

Comments

@rkdrnf
Copy link

rkdrnf commented Oct 17, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant