Skip to content

1.0rc1 - Config validation failure when reusing views configs #3353

Closed
@kfeinUI

Description

@kfeinUI

Ran into an interesting gotcha regarding the 1.0rc1 state configuration validation as I've been working on migrating from 0.x.

So I've got 2 states each having multiple views defined. For those views, they have the same config so I stored the object into a variable and plugged it into both. It's a simple config with a component and bindings. What I found is that a validation error would be raised on the second usage due to the presence of resolveAs on a component configuration. I tracked the issue down to ng1ViewsBuilder.js which modifies the input by applying a default value for resolveAs following the validation, thus making further usages invalid.

Obviously not a showstopper since the workaround is to simply apply a copy, but it was unexpected and may be worth looking at.

Otherwise the migration has been mostly smooth sailing! 1.0 addresses many of pain points of 0.x.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions