Skip to content

Commit 939182a

Browse files
committed
fix: micro-optimisation to speed up initial link
1 parent f5cadc1 commit 939182a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cpp/ShadowTreeUpdateManager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ namespace margelo::nitro::cssnitro {
159159
ShadowTreeUpdateManager::applyUpdates(*rt, updates);
160160
obs->set(ShadowTreeUpdateManager::UpdatesMap{});
161161
});
162-
effect->run();
162+
// Setup the subscription by doing a dummy get()
163+
(void) obs->get(*effect);
163164
runtime_effects_.emplace(rt, std::move(effect));
164165
}
165166
}

0 commit comments

Comments
 (0)