How to update manually installed apps?

If you update first you can use yay -S, but you can also do the thing in one go by using yay -Syu.
Because if you don’t update first you can run into dependecy problems.
Here is an example of what I mean