Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Domain object type composition listeners #5670

Open
jvigliotta opened this issue Aug 16, 2022 · 0 comments
Open

Domain object type composition listeners #5670

jvigliotta opened this issue Aug 16, 2022 · 0 comments

Comments

@jvigliotta
Copy link
Contributor

jvigliotta commented Aug 16, 2022

Is your feature request related to a problem? Please describe.
We have views that store information in a configuration property on the domain object itself. Sometimes this metadata information is linked to the composition of the domain object and it can become out of sync with the actually object composition if the view controls updating the configuration and it's not being viewed at the time the composition is updated.

Describe the solution you'd like
Similar to how we have an initialize function for domain object types:

initialize(domainObject) {

We could have something like:

composition: {
    add: (domainObject, addedObject) => {},
    remove: (domainObject, removedObject) => {}
}

Describe alternatives you've considered
Syncing composition and configuration items on load of the view.

Additional context
This PR/issue is an instance of where this problem arrises.

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

No branches or pull requests

1 participant