Grab my user's tenant name so I can display it
I am currently doing something like this in order to grab my user's tenant. Is this the correct approach?
I am a little concerned that I am hitting the database every time a users visits any page but I think this is actually the recommend way right?
Now, I would like to display my user's organization name in the front end but I am wondering.. is there a way to fetch the user's org once maybe at sign in, instead of doing it on every liveview visit?
Solution:Jump to solution
sign in does not share state with your liveview, but you can put the tenant name in the session
1 Reply
Solution
sign in does not share state with your liveview, but you can put the tenant name in the session