-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
View events not firing anymore since 9.36 #44650
Comments
I noticed the same thing. It only threw the event for the outermost view, but not for any views included from there. |
On the PR #44487, I've consider that there is no need to fire view events if no "creators" and "composers" exist. Yet, seem that a few packages were relying on these events even without registering "creators" and "composers". So, there is two solutions:
|
These are the 2 cases identified, probable that many other packages do something similar and/or userland code also relies on this. Personally I feel like this should be changed in 10.x and basically deprecate the view events. Seems more than fine to refactor code to use |
Prepared the PR, in case we decide to revert the code: #44653. |
Description:
Listening to composing events no longer seems to work, probably related to: #44487.
Unsure if this was ever intended to work but this seems like a very breaking change since this always used to work and people are seemingly relying on it. It looks like an unintentional BC slipped in the 9.36 release.
Steps To Reproduce:
The easiest is to install
barryvdh/laravel-debugbar
(barryvdh/laravel-debugbar#1354, barryvdh/laravel-debugbar#1355) for example which will no longer show any views being rendered. This also breakslaracasts/utilities
and of course any userland code using events directly to listen forcomposing:
or other view related events not registered usingView::composer
.The text was updated successfully, but these errors were encountered: