@uniweb/runtime 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ssr.js CHANGED
@@ -1220,7 +1220,11 @@ async function loadPageData({ website, route, fetch: fetch2, dev = false, locale
1220
1220
  };
1221
1221
  const answered = new DataStore();
1222
1222
  const recording = {
1223
- peek: (request, ctx) => dispatcher.peek(request, ctx),
1223
+ // ⭐ What the plan uses without asking (`keyProgram`'s held steps) is what THIS call's own
1224
+ // requests answered, as `peekRecord` is: the page carries every answer its render reads, so
1225
+ // it may use nothing it did not ask for itself — not another page's answer in a cache the
1226
+ // static build shares.
1227
+ peek: (request) => answered.get(deriveCacheKey$1(request)),
1224
1228
  peekRecord: (id) => answered.getRecord(id),
1225
1229
  dispatch: async (request, ctx) => {
1226
1230
  if (prerender === "author" && request?.prerender === false) {