.once fires multiple times in react

I am trying to do some action after uploading in my react component. I have stumbled upon some posts with similar issues saying we should use the once function to ensure the event is handled only once. This is not the case for me even after using the once function instead if the .on. Does anyone know how to solve this?

Can you share your integration code?