File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ import { computeBoundingBox } from '../screens/Feed/Feed.functions';
3333import { displayFormattedDate } from '../utils/date' ;
3434import { useSelector } from 'react-redux' ;
3535import ModeOfTravelIcon from '@mui/icons-material/ModeOfTravel' ;
36- import { GtfsVisualizationMap } from './GtfsVisualizationMap' ;
3736import ZoomOutMapIcon from '@mui/icons-material/ZoomOutMap' ;
3837import { useRemoteConfig } from '../context/RemoteConfigProvider' ;
3938import { sendGAEvent } from '@next/third-parties/google' ;
@@ -45,6 +44,10 @@ import {
4544
4645// Dynamically import Map and MapGeoJSON for code splitting and bundle size
4746// Useful since these components are rendered conditionally to the tab and will only import when on page
47+ const GtfsVisualizationMap = dynamic (
48+ async ( ) => await import ( './GtfsVisualizationMap' ) . then ( ( mod ) => mod . GtfsVisualizationMap ) ,
49+ { ssr : false } ,
50+ ) ;
4851const MapGeoJSON = dynamic (
4952 async ( ) => await import ( './MapGeoJSON' ) . then ( ( mod ) => mod . MapGeoJSON ) ,
5053 { ssr : false } ,
Original file line number Diff line number Diff line change @@ -51,8 +51,10 @@ import {
5151 StyledListItem ,
5252} from '../Feed.styles' ;
5353import { getFeatureComponentDecorators } from '../../../utils/consts' ;
54- import Locations from '../../../components/Locations ' ;
54+ import dynamic from 'next/dynamic ' ;
5555import CopyLinkElement from './CopyLinkElement' ;
56+
57+ const Locations = dynamic ( async ( ) => await import ( '../../../components/Locations' ) , { ssr : false } ) ;
5658import { formatDateShort } from '../../../utils/date' ;
5759import ExternalIds from './ExternalIds' ;
5860
You can’t perform that action at this time.
0 commit comments