diff --git a/quartz/components/registry.ts b/quartz/components/registry.ts index 5f850d0b8..8aae9aacc 100644 --- a/quartz/components/registry.ts +++ b/quartz/components/registry.ts @@ -47,7 +47,10 @@ class ComponentRegistry { * This prevents duplicate afterDOMLoaded scripts when the same component * appears in multiple page-type layouts. */ - instantiate(constructor: QuartzComponentConstructor, options?: unknown): QuartzComponent { + instantiate( + constructor: QuartzComponentConstructor, + options?: Record, + ): QuartzComponent { const optsKey = options !== undefined ? JSON.stringify(options) : "" // Use constructor identity + serialized options as cache key // We store constructor name as a hint but rely on a unique id for identity