NavigateLegacy
public struct NavigateLegacy: Action, ActionWithSideEffect
Old Navigation action used to ask the Navigator
to navigate to a specific Route
.
-
Returns the new state after the action is dispatched.
Declaration
Swift
public func updatedState(currentState: State) -> State
-
Initializes and return a Navigate action.
Declaration
Swift
public init(to route: Route, animated: Bool = false, context: Any? = nil)
-
The side effect of the action, look into Katana to know what a
SideEffect
is.Declaration
Swift
public func sideEffect(currentState: State, previousState: State, dispatch: @escaping StoreDispatch, dependencies: SideEffectDependencyContainer)