0

why ngOnInit reloads after the data in firebase is modified Here is the line of code who make ngOnInit reload

this.db.database.ref("clients/" + this.user.num + "/mots_cles"+motCleOrder).set(mot.toLowerCase());
tomtom
  • 11
  • 3
  • Can you show us more? Maybe the whole `component.ts`? At least the `ngOnInit` and some relative parts. – StPaulis Jun 29 '21 at 08:56
  • @tomtom are you using any library or an observable for the firebase connection. – dee Jun 29 '21 at 09:00

0 Answers0