Files
klz-cables.com/.pnpm-store/v10/files/58/32e0b25b533d5093c601e97ff0beeacd1bba85f57b61618ec33e9f9e89d0422ae9f8d7b365f2f4a9813c1f9676242abb52f4d335db75f4951b074ec0ec0346
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

41 lines
1.1 KiB
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import React, { createContext, use, useState } from 'react';
const Context = /*#__PURE__*/createContext({
mostRecentUpdate: null,
reportUpdate: () => null
});
export const DocumentEventsProvider = t0 => {
const $ = _c(3);
const {
children
} = t0;
const [mostRecentUpdate, reportUpdate] = useState(null);
let t1;
if ($[0] !== children || $[1] !== mostRecentUpdate) {
t1 = _jsx(Context, {
value: {
mostRecentUpdate,
reportUpdate
},
children
});
$[0] = children;
$[1] = mostRecentUpdate;
$[2] = t1;
} else {
t1 = $[2];
}
return t1;
};
/**
* The useDocumentEvents hook provides a way of subscribing to cross-document events,
* such as updates made to nested documents within a drawer.
* This hook will report document events that are outside the scope of the document currently being edited.
*
* @link https://payloadcms.com/docs/admin/react-hooks#usedocumentevents
*/
export const useDocumentEvents = () => use(Context);
//# sourceMappingURL=index.js.map