public void PostEffect(DispatchedAction dispatchedAction, IStore <ImageLoaderState> store) { switch (dispatchedAction.Action) { case InitializeAction <ImageLoaderState> : OnInitialized(store); break; } }
public bool PreEffect(DispatchedAction dispatchedAction, IStore <ImageLoaderState> store) { if (dispatchedAction.IsCanceled) { return(true); } if (dispatchedAction.Action is not ImageRequestAction action) { return(true); } var(slot, url) = action; LaunchRequest(slot, url, store); return(true); }
public bool PreEffect(DispatchedAction dispatchedAction, IStore <ImageLoaderState> store) => true;