bpms_site/.svn/pristine/37/376f5944200628c19dc296c8cdcf3bb6256a2bc9.svn-base
2025-11-02 16:38:49 +03:30

19 lines
578 B
Plaintext

import { createHrefFromUrl } from "../create-href-from-url";
export function restoreReducer(state, action) {
const { url, tree } = action;
const href = createHrefFromUrl(url);
return {
buildId: state.buildId,
// Set canonical url
canonicalUrl: href,
pushRef: state.pushRef,
focusAndScrollRef: state.focusAndScrollRef,
cache: state.cache,
prefetchCache: state.prefetchCache,
// Restore provided tree
tree: tree,
nextUrl: url.pathname
};
}
//# sourceMappingURL=restore-reducer.js.map