@bsylvain wrote:
My linter return the following warning:
Only string, number, symbol, boolean, null, undefined, and function are allowed as default properties ember/avoid-leaking-state-in-ember-object
for this line in a model :
providerValues:{someprovider:'Some Provider',otherprovider:'Other Provider' }
That I use to complete this property :
provider:DS.attr('string')
How should I set static values in a model to avoid this warning ?
Posts: 1
Participants: 1