Refactor data fetching and state management in MapsPage
- Move data fetching logic from NetworkMap to MapsPage - Handle loading and error states in MapsPage - Remove loading and error handling from NetworkMap - Ensure separation of concerns between data fetching and presentation This refactor simplifies NetworkMap by focusing it solely on rendering the network map, while MapsPage handles data fetching, session management, and error handling.
parent
98b9232a
No related branches found
No related tags found
Showing
- components/NetworkMap/NetworkMap.tsx 2 additions, 14 deletionscomponents/NetworkMap/NetworkMap.tsx
- contexts/GsoConfigContext.tsx 1 addition, 0 deletionscontexts/GsoConfigContext.tsx
- pages/api/runtime-config.ts 2 additions, 0 deletionspages/api/runtime-config.ts
- pages/maps/index.tsx 53 additions, 31 deletionspages/maps/index.tsx
Please register or sign in to comment