When to use server connect in the server side data?

I was wondering what the difference is between the server connect found in server side data and adding the server connect component? What I’ve noticed is that the server side data one is used more for security and on layout pages while the component is used more for fetching data. Not sure if this is just preference or if the two are different.

Community Page
Last updated: