| Location | Melbourne. Australia |
| Location | Melbourne. Australia |
@mbrandonw @mattiem @adamz happy to be corrected if I'm reading it wrong, but the error messaging says it itself: that global dependencies can only be prepared once and are cached for the lifetime of that execution https://github.com/pointfreeco/swift-dependencies/blob/e49707527c892d18f041b4ae639a68b3d33dd7e8/Sources/Dependencies/DependencyValues.swift#L343
So it's statically frozen in the cache, making it a singleton. Sure, the convenience of being able to intercept access to the singleton and return a local value instead makes it a good utility but hiding the singleton doesn't mean the singleton doesn't exist.