isHotReloadTrackingActive function
Determines whether hot-reload active-mount tracking is currently active.
Returns true if bloomHotReloadTrackingEnabled was explicitly set in Dart or if the
DDC dev bootstrap script injected the window.__BLOOM_DDC_HOT_REMOUNT__ marker.
Implementation
bool isHotReloadTrackingActive() {
if (bloomHotReloadTrackingEnabled) return true;
try {
final win = web.window as JSAny;
return _jsGetBool(win, '__BLOOM_DDC_HOT_REMOUNT__') ?? false;
} catch (_) {
return false;
}
}