From 661eb99e947471746aadb834b7adb0f8452dcc4d Mon Sep 17 00:00:00 2001 From: Rami Bitar Date: Mon, 11 May 2026 23:32:54 -0400 Subject: [PATCH] Log PUBLISH payload and post full route object Co-Authored-By: Claude Opus 4.7 --- src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index baafb3c..03575bf 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -47,10 +47,10 @@ export default function App() { ); const handlePublish = async (data: any, route?: { key: string }) => { - console.log("PUBLISH", { data, route: route?.key }); + console.log({ type: "PUBLISH", data: { data, route: JSON.stringify(route) } }); if (typeof window !== "undefined" && window.parent !== window) { window.parent.postMessage( - { type: "PUBLISH", data: { data, route: route?.key } }, + { type: "PUBLISH", data: { data, route } }, "*", ); }