How to re-render a component in +layout.svelte, whenever the userType changes?
I am expecting to switch a navbar state between login and logout, navbar state depends on currentUserType.i have a store for currenUsertype. i want to show login button when user is logedout and when user login into the account then button should disappear from the navbar dynamically.
New contributor
Gourav Saini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.