perform action when navigation item is clicked

When the dashboard link is clicked on the sidebar, I want to clear a value from the session. How can I tap into that?
2 Replies
Dennis Koch
Dennis Koch15mo ago
Not exactly what you want, but probably close enough: Extend the Dashboard page, register your own class and overwrite the mount() method. Then you can clear the session when that page is loaded.
Jon Mason
Jon MasonOP15mo ago
ok, i'll try that, thx!
Want results from more Discord servers?
Add your server