-1
I have this function that performs data recording in Firebase:
addPedido(pedido: Pedido) {
this.pedidosCollection.add({
...pedido,
log_criado: this.timestamp
})
}
If you do not have internet connection this function saves the data offline for later when online pair the data with the BD.
How could I block this transaction when the connection is offline?