Checking an existing code, I could see an environmentObject set in my main file. What does it mean ? it means I am creating an instance of my store and making them available for the entire application ? Like a static instance in other languages ? or there is something else ?
Thank you,
@main
struct myApp: App {
var myStore = MyStore()
var body: some Scene {
WindowGroup {
ContentView()
.environmentObject(myStore)