NavigationLink redirecting me to previous view after appending data to Firebase Realtime Database
I am using SwiftUI and Firebase Realtime Database within my project and whenever I try changing the contents of my database, and then redirect the user to the next view, the view changes briefly and then get redirected back. Here…