diff --git a/src/components/PropertyDetailServer.tsx b/src/components/PropertyDetailServer.tsx index 9fbebd85..c5b96c22 100644 --- a/src/components/PropertyDetailServer.tsx +++ b/src/components/PropertyDetailServer.tsx @@ -23,7 +23,7 @@ const MortgageCalculator = dynamic(() => import('./MortgageCalculator').then(m = export type { PropertyDetailServerProps } from '@/types/propertyDetail'; -export const PropertyDetailServer: React.FC = ({ property }) => { +const PropertyDetailServerInner: React.FC = ({ property }) => { // Each derived value is recomputed only when the slice of the property it // depends on changes, rather than on every render of the detail view. const locationDisplay = useMemo( diff --git a/src/components/PropertySearch.tsx b/src/components/PropertySearch.tsx index b90726d7..edd296c4 100644 --- a/src/components/PropertySearch.tsx +++ b/src/components/PropertySearch.tsx @@ -1,6 +1,6 @@ 'use client'; -import React, { memo, useCallback, useState, useRef, useEffect, useId } from 'react'; +import React, { useCallback, useState, useRef, useEffect, useId } from 'react'; import { useDebounce } from '@/hooks/useDebounce'; import { usePropertyAutocompleteQuery } from '@/hooks/usePropertySearchQuery'; import { useSearchHistory } from '@/hooks/useSearchHistory';