Skip to content

Sub-domains #184

@nhunzaker

Description

@nhunzaker

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:

  1. Do parent domains handle actions first, or after all subdomains have completed?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions