This commit is contained in:
Timothy Jaeryang Baek 2026-03-20 18:53:26 -05:00
parent fe772d95e2
commit 068e52f877

View file

@ -936,11 +936,11 @@
const onHistoryChange = (history) => {
if (history) {
cancelAnimationFrame(contentsRAF);
contentsRAF = requestAnimationFrame(() => {
clearTimeout(contentsRAF);
contentsRAF = setTimeout(() => {
getContents();
contentsRAF = null;
});
}, 0);
} else {
artifactContents.set([]);
}