Interface IIntentHydrator<TIntent>
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Navigation.dll
Rehydrates a restored intent's non-serialized state before its page is recreated. Properties marked with JsonIgnoreAttribute come back default after a restart; during the replay, BEFORE navigating with a restored intent, the engine walks the already-restored stack from the TOP page down to the root looking for the first lifecycle target (page model, or the page itself) implementing this interface for the intent's type, and awaits HydrateAsync(TIntent) so it can fill the missing properties — then navigates with the finalized intent.
public interface IIntentHydrator<in TIntent>
Type Parameters
TIntentThe intent type to hydrate.
Methods
HydrateAsync(TIntent)
Fills the intent's non-serialized properties (e.g. reloading them from persistence).
ValueTask HydrateAsync(TIntent intent)
Parameters
intentTIntentThe deserialized intent about to be replayed.