+
{i > 0 && ' | '}
{String(v)}
@@ -192,7 +192,7 @@ function Modifiers({ schema }: { schema: Schema }) {
if (!parts.length) return null;
const interleaved: React.ReactNode[] = [];
parts.forEach((p, i) => {
- if (i > 0) interleaved.push( · );
+ if (i > 0) interleaved.push( · );
interleaved.push(p);
});
return (
diff --git a/src/components/HubSpotForm/index.tsx b/src/components/HubSpotForm/index.tsx
index 49338092a..c41110580 100644
--- a/src/components/HubSpotForm/index.tsx
+++ b/src/components/HubSpotForm/index.tsx
@@ -81,7 +81,7 @@ export default function HubSpotForm({
const existing = document.querySelector(`script[src="${SCRIPT_SRC}"]`);
if (existing) {
existing.addEventListener('load', init);
- return;
+ return () => existing.removeEventListener('load', init);
}
const script = document.createElement('script');
@@ -90,7 +90,8 @@ export default function HubSpotForm({
script.type = 'text/javascript';
script.addEventListener('load', init);
document.body.appendChild(script);
- }, [portalId, formId, region]);
+ return () => script.removeEventListener('load', init);
+ }, [portalId, formId, region, targetId]);
const formContent = submitted ? (
From 665789272349bedca92c56095684f862059af00f Mon Sep 17 00:00:00 2001
From: Dan Barr <6922515+danbarr@users.noreply.github.com>
Date: Wed, 14 Oct 2026 16:10:39 -0400
Subject: [PATCH 3/3] Preserve undefined component checks in partials
---
eslint.config.mjs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/eslint.config.mjs b/eslint.config.mjs
index 93e25e35e..3661015f4 100644
--- a/eslint.config.mjs
+++ b/eslint.config.mjs
@@ -70,10 +70,12 @@ export default [
// Config for _partials with JSX props
{
files: ['docs/**/_partials/*.mdx'],
+ languageOptions: {
+ globals: { props: 'readonly' },
+ },
rules: {
'no-unused-expressions': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
- 'no-undef': 'off',
},
},
];