Quantcast
Channel: Not getting any data from getStaticProps - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Aditya for Not getting any data from getStaticProps

The error you are getting is from the 'gyms' prop. Please make sure if you are using useEffect in the component where you are using Map, the array variable should be in the array. Since you are getting...

View Article



Not getting any data from getStaticProps

I'm working on a next.js project and I'm trying to get the list of gyms from getStaticProps like this:import { MapContainer, TileLayer, Marker, Popup } from "react-leaflet";import { useState } from...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>