ember-parachute icon indicating copy to clipboard operation
ember-parachute copied to clipboard

Properties decorated with queryParam are undefined

Open allthesignals opened this issue 5 years ago • 3 comments

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?

allthesignals avatar Jun 11 '19 01:06 allthesignals

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 ?

marcemira avatar Jun 18 '19 03:06 marcemira

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

mschorsch avatar Oct 13 '19 06:10 mschorsch

@offirgolan is it planned to be resolved? There is a PR #82 but the author asks for some help.

stukalin avatar Mar 16 '20 04:03 stukalin