Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,7 @@ This library is designed with the shared state as a single source of truth first
Scoped atoms preserves the atom state in the [AtomScope](#atomscope) nearest to the ancestor of where it is used and prevents it from being shared out of scope. `Scoped` is the attribute for that feature.

```swift
struct TextInputAtom: StateAtom, Scoped Hashable {
struct TextInputAtom: StateAtom, Scoped, Hashable {
func defaultValue(context: Context) -> String {
""
}
Expand Down Expand Up @@ -1282,7 +1282,7 @@ When multiple `AtomScope`s are nested, and you want to store and share an atom s
```swift
struct TextScopeID: Hashable {}

struct TextInputAtom: StateAtom, Scoped Hashable {
struct TextInputAtom: StateAtom, Scoped, Hashable {
var scopeID: TextScopeID {
TextScopeID()
}
Expand Down