Skip to content

Commit a9cc16e

Browse files
committed
fixup! Add a queueing mechanism so that in Live Mode we don't render full snapshots until we receive the stylesheet assets to avoid a flash of unstyled content (fouc)
1 parent cff65ae commit a9cc16e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/rrweb/src/replay/machine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ export function createPlayerService(
297297
// TODO: support appearance of a second FullSnapshot before first one's assets load
298298
if (addEventQueueAssetCount <= 0) {
299299
clearTimeout(addEventQueueTimeout);
300-
this.flushAddEventQueue();
300+
flushAddEventQueue();
301301
}
302302
} else if (
303303
event.type === EventType.FullSnapshot &&

0 commit comments

Comments
 (0)