Log PUBLISH payload in handlePublish

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Rami Bitar
2026-05-11 23:31:23 -04:00
parent 0b135b8a32
commit 6b6be4f50c

View File

@@ -47,6 +47,7 @@ export default function App() {
);
const handlePublish = async (data: any, route?: { key: string }) => {
console.log("PUBLISH", { data, route: route?.key });
if (typeof window !== "undefined" && window.parent !== window) {
window.parent.postMessage(
{ type: "PUBLISH", data: { data, route: route?.key } },