From 52a67241a5de89011f209328137051b062aa2152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Castillo?= Date: Thu, 12 Mar 2026 11:34:17 -0300 Subject: [PATCH 1/2] fix: memoize summit data and only trigger re-render on summit id change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomás Castillo --- src/components/RegistrationLiteComponent.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/RegistrationLiteComponent.js b/src/components/RegistrationLiteComponent.js index 0580031b..ea9e8511 100644 --- a/src/components/RegistrationLiteComponent.js +++ b/src/components/RegistrationLiteComponent.js @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from "react"; +import React, { useEffect, useState, useMemo } from "react"; import PropTypes from "prop-types"; import * as Sentry from "@sentry/react"; import { navigate, withPrefix } from "gatsby"; @@ -53,6 +53,7 @@ const RegistrationLiteComponent = ({ }) => { const [isActive, setIsActive] = useState(false); const [initialEmailValue, setInitialEmailValue] = useState(""); + const summitData = useMemo(() => summit, [summit?.id]); useEffect(() => { const fragmentParser = new FragmentParser(); @@ -164,7 +165,7 @@ const RegistrationLiteComponent = ({ const widgetProps = { apiBaseUrl: getEnvVariable(SUMMIT_API_BASE_URL), clientId: getEnvVariable(OAUTH2_CLIENT_ID), - summitData: summit, + summitData, profileData: registrationProfile, marketingData: colorSettings, loginOptions: validateIdentityProviderButtons(siteSettings?.identityProviderButtons, availableThirdPartyProviders), From 48837893119dcce454f0d9309d6d7b6c58ed4827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Castillo?= Date: Mon, 16 Mar 2026 11:57:54 -0300 Subject: [PATCH 2/2] fix: update reg-lite version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomás Castillo --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4666d53d..57cd25c0 100644 --- a/package.json +++ b/package.json @@ -135,7 +135,7 @@ "stream-browserify": "^3.0.0", "stream-chat": "^2.7.2", "stream-chat-react": "3.1.7", - "summit-registration-lite": "6.0.8", + "summit-registration-lite": "6.0.9", "superagent": "8.0.9", "sweetalert2": "^11.11.1", "upcoming-events-widget": "3.0.7",