-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
State of provide/inject #5067
Labels
Comments
Provide an object with reactive data inside. |
@Akryum Can you update the fiddle with an example? I think we should add some examples in docs too. |
13 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Provide/Inject allows ancestor component to serve as a dependency injector. Injected dependencies are not reactive. As per docs, if an observed property is provided it remains reactive.
I've created a fiddle (https://jsfiddle.net/1hcpbrjz/6/) to demonstrate few scenarios.
This feature is very new, so docs are too shallow.
Question: How to provide reactive data props and computed prop?
( #5075 ) Initialising injections before state would allow using injections in props. https://jsfiddle.net/fsurfc5w/
The text was updated successfully, but these errors were encountered: