Something went wrong. Try again.
Monorepo for Tangled forked from tangled.org/core
Something went wrong. Try again.
12345678910// a settled promise runs {:then} in its own batch, which sees the old data and page while a navigation landsconst readsRouteState = "Identifier[name=/^(data|page)$/]:not(MemberExpression > Identifier.property, Property > Identifier.key)";
export const staleAwait = ["Pending", "Then", "Catch"].map((branch) => ({ selector: `SvelteAwait${branch}Block:has(${readsRouteState})`, message: "{#await} branches can run before a navigation lands, seeing the old data and page. await in a <Pending> instead: {@const value = await ...}."}));