Skip to content

Commit

Permalink
Clear snapshot cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Olivares committed Jul 4, 2024
1 parent 66e623b commit 2bf3eb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Session/Session.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public class Session: NSObject {
visitable.visitableDelegate = self

if reload {
clearSnapshotCache()
initialized = false
}

Expand All @@ -85,6 +86,7 @@ public class Session: NSObject {
guard let visitable = topmostVisitable else { return }

initialized = false
clearSnapshotCache()
visit(visitable)
topmostVisit = currentVisit
}
Expand Down

0 comments on commit 2bf3eb0

Please sign in to comment.