-
I'm new to Oqtane and the eco system. I would like to give the anonymous user the ability to set preferences (metric vs imperial), these preferences need to flow to the custom modules. I was thinking to use PageState since these values automatically flow to the custom modules and can be retrieved easily. I'm using the same approach as for the language selection and I have created a "settingsSwitcher.razor" which is called from Default.razor. However when I update the custom PageState value in settingsSwitcher.razor it looses it values direct after I navigate between pages. I have read an article that the PageState is maintained in App.Razor and Siterouter, but I struggle to find a way to call the update PageState from "settingsSwitcher.razor". Can you help me how to update the PageState with an updated value or suggest a better approach? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@djong1 I would suggest you use VisitorSettings for this, as it was designed for storing information related to anonymous visitors.
|
Beta Was this translation helpful? Give feedback.
@djong1 I would suggest you use VisitorSettings for this, as it was designed for storing information related to anonymous visitors.