Skip to content

Commit

Permalink
fix: not appearing initially
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofzablocki committed Nov 16, 2023
1 parent 2bfcdbf commit 0f62a7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/LifetimeTracker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ public extension LifetimeTrackable {
@objc public static func setup(onLeakDetected: LeakClosure? = nil, onUpdate: @escaping UpdateClosure) {
assert(instance == nil)
instance = LifetimeTracker(onLeakDetected: onLeakDetected, onUpdate: onUpdate)
onUpdate([:])
}

/// Set a new update closure, use to set the visibility/style of the dashboard.
Expand Down

0 comments on commit 0f62a7b

Please sign in to comment.