Skip to content

Commit

Permalink
Typo (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonUtsch authored Jan 27, 2023
1 parent e0eb883 commit 41f388d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/_SwiftUIDependency/SwiftUIEnvironment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

// TODO: Explore observing any DynamicProperty instead of only `Environment`

// Trying to make this a `DynamicProperty` itself to automatically udpate the value
// at `udpate()` doesn't work as we don't have a guarantee that an internal `@Environment`
// value would have received its udpate before this value and expose the latest value.
// Trying to make this a `DynamicProperty` itself to automatically update the value
// at `update()` doesn't work as we don't have a guarantee that an internal `@Environment`
// value would have received its update before this value and expose the latest value.
// Any attempt to defer the call risks getting out of the `update`/`body` cycle and raise
// a runtime warning.
extension Dependency {
Expand Down

0 comments on commit 41f388d

Please sign in to comment.