You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not clear in the first Context example that the provider should be a parent of the consumer.
This results in a first experience where it's unclear how to arrange the producing and consuming elements. E.g., Placing the elements as siblings does not result in context being shared.
<my-app></my-app><my-element></my-element>
Instead, my-element (the consumer) must be a descendent of my-app. So the following works:
<my-app><my-element></my-element></my-app>
The text was updated successfully, but these errors were encountered:
It's not clear in the first Context example that the provider should be a parent of the consumer.
This results in a first experience where it's unclear how to arrange the producing and consuming elements. E.g., Placing the elements as siblings does not result in context being shared.
Instead,
my-element
(the consumer) must be a descendent ofmy-app
. So the following works:The text was updated successfully, but these errors were encountered: