decojs / DecoJS

A framework for creating maintainable frontend applications
11 stars 2 forks source link

An observable cannot be a parameter to multiple commands/constraints with different constraints #2

Closed mariusGundersen closed 9 years ago

mariusGundersen commented 10 years ago

For example, one command requiring an observable to be NotEmpty, while another command allows it to be NotEmpty. The observable will get the validation rule NotEmpty applied, even though it can be empty for one of the commands.

There needs to be a simpler way to debug this issue. There can't be different constraints for different commands applied to the same observable. Instead an error should be thrown if the same observable is used in multiple commands/queries.