HAMUR_W3016: setPageLayout() runs after its route middleware ended
setPageLayout() runs after its route middleware ended. Warning HAMUR_W3016 belongs to hamur, client and shared app code (3001 – 3999).
Message
HAMUR_W3016 setPageLayout() after its route middleware ended changes nothing: the navigation has chosen its layout; await the call in the middleware
Cause
setPageLayout(name, ctx) ran after the middleware run of ctx had ended, usually from a promise the middleware did not await. That navigation has already chosen its layout, so the call changes nothing.
Fix
Await the work that calls it inside the middleware, so the call happens while the middleware runs.