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
Listen for an event on router-view which is emitted by a child component. Vue will display a warning about "Extraneous non-emits event listeners" even though a child component emits the event, if the initial path loaded renders a child component that doesn't emit the event.
Expected behavior
Vue detects that one of the child components that may be rendered by the router view emits the event, and doesn't give the warning.
Actual behavior
Vue gives the warning.
Additional information
No response
The text was updated successfully, but these errors were encountered:
@posva But why should the Home component need to? There needs to be a mechanism to allow any child component that may be rendered by a router-view to emit events through the router-view.
Reproduction
https://stackblitz.com/edit/vitejs-vite-jy1j3d
Steps to reproduce the bug
Listen for an event on
router-view
which is emitted by a child component. Vue will display a warning about "Extraneous non-emits event listeners" even though a child component emits the event, if the initial path loaded renders a child component that doesn't emit the event.Expected behavior
Vue detects that one of the child components that may be rendered by the router view emits the event, and doesn't give the warning.
Actual behavior
Vue gives the warning.
Additional information
No response
The text was updated successfully, but these errors were encountered: