Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Resolved conflicts by taking GitHub versions for: - .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml Kept deploy.sh updated to: - Pull from GitHub (primary source) - Push to Gitea (push-mirror) - Build from site/ directory (GitHub structure) Co-Authored-By: Paperclip <noreply@paperclip.ing>
51 lines
2.0 KiB
JavaScript
51 lines
2.0 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
Object.defineProperty(exports, "unstable_noStore", {
|
|
enumerable: true,
|
|
get: function() {
|
|
return unstable_noStore;
|
|
}
|
|
});
|
|
const _workasyncstorageexternal = require("../../app-render/work-async-storage.external");
|
|
const _workunitasyncstorageexternal = require("../../app-render/work-unit-async-storage.external");
|
|
const _dynamicrendering = require("../../app-render/dynamic-rendering");
|
|
function unstable_noStore() {
|
|
const callingExpression = 'unstable_noStore()';
|
|
const store = _workasyncstorageexternal.workAsyncStorage.getStore();
|
|
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
|
if (!store) {
|
|
// This generally implies we are being called in Pages router. We should probably not support
|
|
// unstable_noStore in contexts outside of `react-server` condition but since we historically
|
|
// have not errored here previously, we maintain that behavior for now.
|
|
return;
|
|
} else if (store.forceStatic) {
|
|
return;
|
|
} else {
|
|
store.isUnstableNoStore = true;
|
|
if (workUnitStore) {
|
|
switch(workUnitStore.type){
|
|
case 'prerender':
|
|
case 'prerender-client':
|
|
case 'validation-client':
|
|
case 'prerender-runtime':
|
|
// unstable_noStore() is a noop in Dynamic I/O.
|
|
return;
|
|
case 'prerender-ppr':
|
|
case 'prerender-legacy':
|
|
case 'request':
|
|
case 'cache':
|
|
case 'private-cache':
|
|
case 'unstable-cache':
|
|
case 'generate-static-params':
|
|
break;
|
|
default:
|
|
workUnitStore;
|
|
}
|
|
}
|
|
(0, _dynamicrendering.markCurrentScopeAsDynamic)(store, workUnitStore, callingExpression);
|
|
}
|
|
}
|
|
|
|
//# sourceMappingURL=unstable-no-store.js.map
|