ember-parachute
ember-parachute copied to clipboard
Properties decorated with queryParam are undefined
import { queryParam, withParachute } from 'ember-parachute/decorators';
export default class ApplicationController extends Controller {
@queryParam
selectedZoning = [];
}
selectedZoning
is undefined when called from my template. No errors. Using Ember 3.10.
Any ideas?
Similarly, when mixing a QueryParams Mixin, the object doesn't inherit any property, there's no way to set or change the parameters :thinking:... any ideas @allthesignals @offirgolan ?
ember-parachute decorators are implemented as stage 2 decorators. I guess that they should be reimplemented as stage 1 decorators because ember follows the legacy stage 1 decorators proposal (https://github.com/ember-decorators/ember-decorators/blob/master/README.md#specs).
https://emberjs.github.io/rfcs/0440-decorator-support.html
@offirgolan is it planned to be resolved? There is a PR #82 but the author asks for some help.