fix
This commit is contained in:
parent
0f520d14c4
commit
8e3c982ac9
File diff suppressed because one or more lines are too long
|
|
@ -140,7 +140,6 @@ export const reloadPage = async (
|
||||||
p.status = "reload";
|
p.status = "reload";
|
||||||
const remotePage = await p.sync.page.load(page_id);
|
const remotePage = await p.sync.page.load(page_id);
|
||||||
|
|
||||||
console.log(remotePage)
|
|
||||||
if (!remotePage) {
|
if (!remotePage) {
|
||||||
p.status = "page-not-found";
|
p.status = "page-not-found";
|
||||||
p.render();
|
p.render();
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,8 @@ export const useLocal = <T extends object>(
|
||||||
local.lastRenderCount = 0;
|
local.lastRenderCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (local.lastRenderCount > 50) {
|
if (local.lastRenderCount > 300) {
|
||||||
throw new Error("local.render more than 50 times in less than 300ms");
|
throw new Error("local.render more than 300 times in less than 300ms");
|
||||||
}
|
}
|
||||||
|
|
||||||
local.lastRender = Date.now();
|
local.lastRender = Date.now();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue