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
If your menu is created dynamically (for instance from database queries) those queries will be executed for every web request, even on pages where you dont have menus. This is because Menu::makeOnce resolves callback immediately! I was not aware of that and honestly this behaviour surprised me. I think callback should be resolved while trying to render menu.
The text was updated successfully, but these errors were encountered:
If your menu is created dynamically (for instance from database queries) those queries will be executed for every
web
request, even on pages where you dont have menus. This is becauseMenu::makeOnce
resolves callback immediately! I was not aware of that and honestly this behaviour surprised me. I think callback should be resolved while trying to render menu.The text was updated successfully, but these errors were encountered: