Firebase – Array pushes elements already in Array despite !arry.includes
I am trying to build an app that requires a directory. Every time I update the component, it pushes the data into the array again creating multiple copies. I tried solving that by adding an !arry.includes, but that does not…