actionsPageVmProvider top-level property

ViewProvider<ActionsPageVm> actionsPageVmProvider
final

Implementation

final actionsPageVmProvider = ViewProvider((ref) {
  final serverState = ref.watch(actionProvider);
  return ActionsPageVm(
    actions: serverState.actions,
    sendAction: (actionId, params) => ref
        .redux(serverProvider)
        .dispatch(SendActionAction(actionId: actionId, params: params)),
  );
});