-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Labels
Description
I think it's time that we have an actual class to describe Domains. We could use this to manage Sub-domains, which could operate relative to the key a Domain is mounted to:
class Network extends Domain {
setup (repo) {
this.addDomain('nodes', Nodes) // mounted to ['network', 'nodes']
this.addDomain('edges', Edges) // mounted to ['network','edges']
}
}
repo.addDomain('network', Network)
Outstanding questions:
- Do parent domains handle actions first, or after all subdomains have completed?