adopted-ember-addons / adopted-ember-addons/ember-cp-validations

getDependentsFor not working in ember octane throwing maximum call stack size exceeded error

Aberta
#679 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
439
Forks
172
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

### Environment

- Ember Version: 3.16.0
- Ember CLI Version: 3.16.1
- Ember CP Validations Version: 4.0.0-beta.10

### Steps to Reproduce

EmberObject Syntax
```
ValidatorName.reopenClass({
getDependentsFor(attribute, options) {
return [];
}
});
```

Class Syntax
```
@classic
class ValidatorName extends BaseValidator {
static getDependentsFor(attribute) {
return []
};
}
export default ValidatorName;
```

Screen Shot 2020-07-01 at 7 05 33 PM

Both of syntax throw this error in Octane. Is there an alternative way to achieve this, or am i doing something wrong

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.