Skip to content

wire/builder/cram interprets any property called "create" as a factory #148

@unscriptable

Description

@unscriptable

If any component in a spec has a property named "create" and that property is used as the key in a facet, wire/builder/cram thinks the value is a module and attempts to read it off the disk.

    controller: {
        create: 'controller',
        properties: {
            create: { $ref: 'foo' }
        },
        afterRejecting: {
            create: 'showError.add'
        },
    }

cram will look for modules named "{ $ref: 'foo' }" and "showError.add". :(

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