How can I avoid a firebase data sending collision?

If you want to make a comment system then this can help you:

Also elaborate your problem/question more.