Skip to content

Shared State between Site, Modules, Themes #760

Answered by markdav-is
markdav-is asked this question in Q&A
Discussion options

You must be logged in to vote

we are using https://github.com/Blazored/SessionStorage so the data is pinned to the tab, and not the user. Now I'm configuring the service in the Theme (as opposed to a module) using IClientStartup. It's super simple to share UI data between the theme and the modules this way.
_confName = await SessionStorage.GetItemAsync<string>("confName");

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@markdav-is
Comment options

Comment options

You must be logged in to vote
1 reply
@sbwalker
Comment options

Answer selected by markdav-is
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants