pub fn on_action_with_context<State, Action, Context, OnAction, Res, ChildView, ChildAction>(
on_action: OnAction,
child: ChildView,
) -> OnActionWithContext<State, Action, Context, OnAction, Res, ChildView, ChildAction>where
Context: ViewPathTracker,
OnActionWithContext<State, Action, Context, OnAction, Res, ChildView, ChildAction>: View<State, Action, Context>,
OnAction: Fn(&mut State, &mut Res, ChildAction) -> Action,Expand description
Operate on an environment value when a child view returns an action.
This is an interim solution whilst we design APIs for environment manipulation.
The first argument on_action is the function which will be ran in this case.
The arguments are the app’s state, the specified resource and the action returned
by the child.