Log PUBLISH payload in handlePublish
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -47,6 +47,7 @@ export default function App() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const handlePublish = async (data: any, route?: { key: string }) => {
|
const handlePublish = async (data: any, route?: { key: string }) => {
|
||||||
|
console.log("PUBLISH", { data, route: route?.key });
|
||||||
if (typeof window !== "undefined" && window.parent !== window) {
|
if (typeof window !== "undefined" && window.parent !== window) {
|
||||||
window.parent.postMessage(
|
window.parent.postMessage(
|
||||||
{ type: "PUBLISH", data: { data, route: route?.key } },
|
{ type: "PUBLISH", data: { data, route: route?.key } },
|
||||||
|
|||||||
Reference in New Issue
Block a user