You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: Due to pre-rendering in Blazor Server you can't perform any JS interop until the OnAfterRender lifecycle method.
Now, I really don't like that because in my app I often have to do query data based on stuff in session storage (e.g. currently selected patient). Only being able to decide which patient I want to query data for in OnAfterRenderAsync would make my app slow, because just after rendering I would load data in that changes everything again.
Since I don't prerender, I thought I'd try to access session storage in OnInitializedAsync, which ... actually worked. Is this just a fluke or can I access session (and in extension local) storage in OnInitializedAsync when I don't prerender?
Thank you for the great library!
luetm
The text was updated successfully, but these errors were encountered:
I read through the documentation, where you say:
Now, I really don't like that because in my app I often have to do query data based on stuff in session storage (e.g. currently selected patient). Only being able to decide which patient I want to query data for in
OnAfterRenderAsync
would make my app slow, because just after rendering I would load data in that changes everything again.Since I don't prerender, I thought I'd try to access session storage in
OnInitializedAsync
, which ... actually worked. Is this just a fluke or can I access session (and in extension local) storage inOnInitializedAsync
when I don't prerender?Thank you for the great library!
luetm
The text was updated successfully, but these errors were encountered: