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

Local Component Access on Context Param #33

Closed
SorenV opened this issue Jul 17, 2019 · 1 comment
Closed

Local Component Access on Context Param #33

SorenV opened this issue Jul 17, 2019 · 1 comment

Comments

@SorenV
Copy link

SorenV commented Jul 17, 2019

I've been playing with the new API the past couple days and really enjoy it. Thank you for all the work.

I may have missed it, or there is an alternate method to access the local component from within the setup function, but I have not been able to determine it.

From the RFC, it makes sense:

setup() {
  function onClick() {
    this // not the `this` you'd expect!
  }
}

The request is to either make it more clear how to access the local component for less astute people such as myself or add the functionality. Or perhaps help me understand why I wouldn't want to. An example.

@SorenV
Copy link
Author

SorenV commented Jul 17, 2019

Annoyingly, I just found this. It appears my use case is under discussion. Closing.

@SorenV SorenV closed this as completed Jul 17, 2019
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

1 participant