Last post Jul 23, 2020 07:25 AM by yij sun
Jul 22, 2020 11:52 PM|fazioliamboina|LINK
Im using blazor, and all client side data storages are overlay complicated or still in development. it leaves querystring as the easiest alternative. but the problem is that it is a hand full of work to keep passing it over with every anchor manually.
i need the easiest way to recognise someone. i only want to store a stupid simple ID in the client browser, so that i know who they are between pages and then lookup their data on server side.
At this moment, this is the main reason why i cannot embrace blazor at all.
Jul 23, 2020 06:07 AM|Mikesdotnetting|LINK
Assuming that you are using WebAssembly Blazor (you haven't said), you can use something like the AppState solution mentioned at the end of this article: https://chrissainty.com/3-ways-to-communicate-between-components-in-blazor/
Fundamentally, it's a global variable that is scoped to the current user because the app instance is executing in the user's browser. It's kind of like an implementation of session state on the client.
Jul 23, 2020 07:25 AM|yij sun|LINK
i need the easiest way to recognise someone.
Accroding to your description,I don't understand your requirment clearly.What means to recodnise someone.Do you need to communicate between components in Blazor?
Could you tell more details of your requirment clearly?It will help us to solve your problem.