I created a view that current user can use to search/view user profiles. The view lists user profiles and shows one at a time. A profile page can be either flagged “Like” or “Pass” (dating website style). I want the next profile to load after the current user flags the profile they are viewing.
You can add a is/is not flagged filter to the view. If you don't see this option, you need to add your flag as a relationship to the view to get the filter to appear.
So, if you have configured the view to only show unflagged users, then if you're using the AJAX flag widget, I'm pretty sure it will automatically refresh the view and jump to the next person.
If not, you will have to write code to get it to refresh after each flag action.