ActionLinker
@available(*, deprecated, message: "Use ObserverInterceptor instead")
public struct ActionLinker
The engine that dispatches all the actions that depends on a triggered source action. This is invoked every time an action is dispatched. The ActionLinker is responsible to check if there are actions that must be issued after a source actionis dispatched. For each of this actions, it checks if the conditions are met: if yes, they are dispatched.
-
This function returns a StoreMiddleware that chains the actions defined as linked
See
seeStoreMiddleware
for details.Declaration
Swift
public static func middleware(for linkedActions: [ActionLinks]) -> StoreMiddleware