-
|
I have a Blazor Server application with pre-rendering enabled. I am using
This is because with What is the best way to handle this? I would still like the lifecycle management that comes with Right now I am leaning toward replacing Current (not working) implementation: Currently the lifecycle is: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
The solution is to create a custom My implementation is below. IActivationForViewFetcherRegister the IActivationForViewFetcherDon't forget to register the InterfaceComponent (View)Which results in the following lifecycle. |
Beta Was this translation helpful? Give feedback.
-
|
This feels like something that should just be a default in ReactiveUI, is there any reason that ReactiveUI for Blazer would ever not want to do this? |
Beta Was this translation helpful? Give feedback.
The solution is to create a custom
IActivationForViewFetcher. A complete example of how to do this is available in Sample 18.05 of You, I, and ReactiveUI. Shout out to @kentcb for an excellent book . If I would have kept reading I would have found the answer sooner. 🤦♂️My implementation is below.
IActivationForViewFetcher