Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

About injections… #7

Open
jpommerening opened this issue Jul 10, 2017 · 2 comments
Open

About injections… #7

jpommerening opened this issue Jul 10, 2017 · 2 comments

Comments

@jpommerening
Copy link
Member

https://vuejs.org/v2/api/#provide-inject

I think we should have a look at this?

@alex3683
Copy link
Member

Hm, looks a bit like this was made for us 😃

@jpommerening
Copy link
Member Author

jpommerening commented Jul 11, 2017

Yeah, I think we could just let the user specify the inject property and pass it to the Component function without even looking at it.
We can then pass provide as an option when instantiating the component, maybe even the raw widget services object with all its getters.

React has something similar called context but the documentation is littered with warnings not to use it.

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

No branches or pull requests

3 participants