Session.flash problem


Just got into a strange situation.
I am sending a flash message on user login while redirecting to /profile page. It didn’t work as I expected, so I tried to send user back to /login page, it works well, even if I send user to /admin page it works.
If I try to response.route user with a flash message from / to /profile message is not showing up.
Where to search the problem?


Okay, I found the problem, edge components for some sort of reason are not working with includes as I expected.


I included flash partial into component and this partial was not working for some reason


The components have isolate scope. So if you want to access flashMessages, then you have to pass it props to it.

@component('name', flashMessages = flashMessages)

{-- or --} 
@component('name', { flashMessages })