Skip to content

Commit

Permalink
fixup! Add a queueing mechanism so that in Live Mode we don't render …
Browse files Browse the repository at this point in the history
…full snapshots until we receive the stylesheet assets to avoid a flash of unstyled content (fouc)
  • Loading branch information
eoghanmurray committed Sep 27, 2024
1 parent cff65ae commit a9cc16e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rrweb/src/replay/machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export function createPlayerService(
// TODO: support appearance of a second FullSnapshot before first one's assets load
if (addEventQueueAssetCount <= 0) {
clearTimeout(addEventQueueTimeout);
this.flushAddEventQueue();
flushAddEventQueue();
}
} else if (
event.type === EventType.FullSnapshot &&
Expand Down

0 comments on commit a9cc16e

Please sign in to comment.