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 Sources/Atoms/Core/StoreContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ private extension StoreContext {
currentScopeKey: cache.initScopeKey
)

let didUpdate = localContext.transiteveUpdate(for: key, cache: cache)
let didUpdate = localContext.transitiveUpdate(for: key, cache: cache)

guard didUpdate else {
// Record the atom to avoid downstream from being update.
Expand Down Expand Up @@ -386,7 +386,7 @@ private extension StoreContext {
notifyUpdateToObservers(scopeKeys: updatedScopeKeys)
}

func transiteveUpdate(for key: AtomKey, cache: some AtomCacheProtocol) -> Bool {
func transitiveUpdate(for key: AtomKey, cache: some AtomCacheProtocol) -> Bool {
// Overridden atoms don't get updated transitively.
let newValue = getValue(of: cache.atom, for: key, override: nil)

Expand Down