Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit ed761ce

Browse files
committed
Remove call to recalcLifecycle from clearLc
When recalculateLifecycle is called from clearLifecycle, all it is doing is clearing the subtreeLifecycleEvents, so now we're just explicitly doing that and not calling recalculateLifecycle.
1 parent d183dfa commit ed761ce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

common/frame.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,9 @@ func (f *Frame) clearLifecycle() {
163163
// clear lifecycle events
164164
f.lifecycleEventsMu.Lock()
165165
f.lifecycleEvents = make(map[LifecycleEvent]bool)
166+
f.subtreeLifecycleEvents = make(map[LifecycleEvent]bool)
166167
f.lifecycleEventsMu.Unlock()
167168

168-
f.page.frameManager.MainFrame().recalculateLifecycle()
169-
170169
// keep the request related to the document if present
171170
// in f.inflightRequests
172171
f.inflightRequestsMu.Lock()

0 commit comments

Comments
 (0)