Replies: 1 comment 1 reply
-
When you create an EventsEnvironment(
...
locationManager: .live,
...
) You are actually creating a whole new location manager every time this code is executed. You can see this by looking at the source The correct way to use this dependency is to have a root-level environment that holds all of your dependencies, and then when pulling back pass down just the dependencies the child feature needs. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://vimeo.com/641515257 here I have make video
crash https://github.com/AddaMeSPB/AddaMeIOS/blob/feature/git_workflow/AddameSPM/Sources/EventView/EventsReducer.swift#L153
Delegate must respond to locationManager:didUpdateLocations: becz of many time init View
many time called event pull back
https://github.com/AddaMeSPB/AddaMeIOS/blob/feature/git_workflow/AddameSPM/Sources/TabsView/TabsReducer.swift#L30
Beta Was this translation helpful? Give feedback.
All reactions