Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properties decorated with queryParam are undefined #80

Open
allthesignals opened this issue Jun 11, 2019 · 3 comments
Open

Properties decorated with queryParam are undefined #80

allthesignals opened this issue Jun 11, 2019 · 3 comments

Comments

@allthesignals
Copy link

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?

@marcemira
Copy link

marcemira commented Jun 18, 2019

Similarly, when mixing a QueryParams Mixin, the object doesn't inherit any property, there's no way to set or change the parameters 🤔... any ideas @allthesignals @offirgolan ?

@mschorsch
Copy link

mschorsch commented Oct 13, 2019

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

@stukalin
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants