Skip to content

Commit

Permalink
Document double-snapshotting.
Browse files Browse the repository at this point in the history
  • Loading branch information
svara committed Mar 4, 2024
1 parent 54b1cd8 commit 56b26eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/Session/Session.swift
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ extension Session: VisitDelegate {
extension Session: VisitableDelegate {
public func visitableViewWillAppear(_ visitable: Visitable) {
defer {
/// Nilling out the previous visit here prevents `double-snapshotting` for web -> web visits.
previosVisit = nil
}

Expand Down

0 comments on commit 56b26eb

Please sign in to comment.