How to persist a App State when using in a custom action?

I created a Custom Action to handle a persistent variable. However, I noticed that the result of the action did not persist in the app's memory. If I close the app and reopen it, the previous information is still there. From my tests, it seems like the result of the action stayed in temporary memory and is only persisted if I do any other action with the variable through FF's actions.

For example:

Case 1: I execute my Custom Action, close the app and reopen it -> the previous information remains.

Case 2: I execute my Custom Action, perform any other action with the same variable, close the app and reopen it -> the information is correct.

What do I need to do to persist the information inside an Custom Action?

Future funDeletaRegistrosQueForamEnviados(int? idProjeto) async {
  // iterate "despesas" fom appstate and delete records with "idProjeto" is  "desUploaded" is true
  List<DespesasStruct> despesas = FFAppState().varDespesas;
  for (int i = 0; i < despesas.length; i++) {
    if (despesas[i].desProjeto == idProjeto &&
        despesas[i].desUploaded == true) {
      FFAppState().update(() {
        FFAppState().varDespesas.removeAt(i);
      });
      // retrocede um pois foi deletado um registro (não tem chave!!!)
      i--;
    }
  }
}
4