refac
This commit is contained in:
1 parent
fe772d95e2
commit
068e52f877
1 file changed
+3
-3
@@ -936,11 +936,11 @@
|
|||||||
|
|
||||||
const onHistoryChange = (history) => {
|
const onHistoryChange = (history) => {
|
||||||
if (history) {
|
if (history) {
|
||||||
cancelAnimationFrame(contentsRAF);
|
clearTimeout(contentsRAF);
|
||||||
contentsRAF = requestAnimationFrame(() => {
|
contentsRAF = setTimeout(() => {
|
||||||
getContents();
|
getContents();
|
||||||
contentsRAF = null;
|
contentsRAF = null;
|
||||||
});
|
}, 0);
|
||||||
} else {
|
} else {
|
||||||
artifactContents.set([]);
|
artifactContents.set([]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user