This commit is contained in:
Rizky 2024-06-05 09:09:28 +07:00
parent 0f520d14c4
commit 8e3c982ac9
3 changed files with 3 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -140,7 +140,6 @@ export const reloadPage = async (
p.status = "reload";
const remotePage = await p.sync.page.load(page_id);
console.log(remotePage)
if (!remotePage) {
p.status = "page-not-found";
p.render();

View File

@ -38,8 +38,8 @@ export const useLocal = <T extends object>(
local.lastRenderCount = 0;
}
if (local.lastRenderCount > 50) {
throw new Error("local.render more than 50 times in less than 300ms");
if (local.lastRenderCount > 300) {
throw new Error("local.render more than 300 times in less than 300ms");
}
local.lastRender = Date.now();