In order to view this lesson, you must purchase this course.
In SwiftUI, you should be aware of a certain behavior with NavigationLinks. By default, your destination views will be loaded into memory whenever your application starts. In other words, our CategoryDetailsView is loaded immediately and hits the network without the user even tapping anything.
This is quite aggressive and instead I want to present an on-demand approach to lazily load our views.
StackOverflow post:
https://stackoverflow.com/questions/57594159/swiftui-navigationlink-loads-destination-view-immediately-without-clicking