diff --git a/packages/embeds/embed-core/src/embed.ts b/packages/embeds/embed-core/src/embed.ts index 99210b962e..ec5e3bb589 100644 --- a/packages/embeds/embed-core/src/embed.ts +++ b/packages/embeds/embed-core/src/embed.ts @@ -690,7 +690,10 @@ class CalApi { if (__prerender) { this.preloadedModalUid = uid; } else { - this.modalUid = uid; + // Intentionally not setting it to have the behaviour of reusing the same modal. Because it causes outdated content that might not be valid based on + // 1. The time difference b/w reopening(availability getting changed in b/w) + // 2. User using different query params but they not being used because of the same modal being reused. Happens in case of headless router being opened in embed + // this.modalUid = uid; } if (typeof config.iframeAttrs === "string" || config.iframeAttrs instanceof Array) {