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
We are using Laravel Octane and it will sometimes put the previous request's variables into the current request. Putting a breakpoint in the LaravelViewBinder class, it will get hit multiple times with the same variables or with other variables from the previous request which are no longer valid for the current request.
I am not sure what is causing it but I am guessing something is cached in the Octane instance which is not refreshing. I am not sure how to get around it either, other than manually doing the JS parsing myself.
The text was updated successfully, but these errors were encountered:
jeremy-smith-maco
added a commit
to jeremy-smith-maco/PHP-Vars-To-Js-Transformer
that referenced
this issue
Oct 31, 2022
After the JS has been echo'd to the blade template, remove the event listener. Appears to work in our Laravel Octane application and works with multiple binds in a single request.
We are using Laravel Octane and it will sometimes put the previous request's variables into the current request. Putting a breakpoint in the
LaravelViewBinder
class, it will get hit multiple times with the same variables or with other variables from the previous request which are no longer valid for the current request.I am not sure what is causing it but I am guessing something is cached in the Octane instance which is not refreshing. I am not sure how to get around it either, other than manually doing the JS parsing myself.
The text was updated successfully, but these errors were encountered: