-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot to get CascadingParam when naviated from INavigation.PushAsync<>() #90
Comments
That's an interesting use case. Currently Navigation.PushAsync is equivalent to smth like that from Maui: I'll take a look whether it is possible to re-use cascading values from calling component (I doubt it that Blazor allows that, but not sure). I'm thinking about your use case though. Would it work if you register Theme as a singleton in DI container instead of CascadingValue? |
In my usecase, When route from nav menu button in |
I see. Technically it is possible to handle StateHasChanged in root component only, but again - PushAsync currently creates a separate blazor tree, therefore there is no shared root component. |
I will deal with using a state management library like Fluxor. |
@le-nn Do you think it would make sense from the perspective of this request? OTOH, since adding a markup in a layout doesn't make any sense (and probably won't work at all), maybe it makes sense to create a similar concept with a different name to avoid confusion. |
Cannot to get CascadingParam when naviated from INavigation.PushAsync<>()
AppShell
PageNavigateFrom
PageNavigateTo
The text was updated successfully, but these errors were encountered: