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
The inner functional component cannot access any injected properties.
This occurs because the FC is rendered in the nearest vue context, which happens to be the provider in this case, and it's not possible to inject and provide within the same component.
What does the proposed API look like?
The same as now, but supporting injections in functional components that are the immediate children of a provider.
This could either be achieved by supporting injections inside the same component as the provider, or passing the injections down similar to how we pass props down.
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
This comment from #5194 covers the use case quite well. In short, there is no way to do the following:
The inner functional component cannot access any injected properties.
This occurs because the FC is rendered in the nearest vue context, which happens to be the provider in this case, and it's not possible to inject and provide within the same component.
What does the proposed API look like?
The same as now, but supporting injections in functional components that are the immediate children of a provider.
This could either be achieved by supporting injections inside the same component as the provider, or passing the injections down similar to how we pass props down.
The text was updated successfully, but these errors were encountered: