Open dawidseipold opened 2 years ago
Currently, List component requires the item to be passed directly as a prop, which, results in the track object being duplicated in getServerSideProps. It needs adjusting!
List
getServerSideProps
tracks.forEach((track, index) => { Object.assign(track, { track: { ...track, loved: loved[index] } }); });
Partially fixed in the most recent commit. Still needs improvements.
Currently,
List
component requires the item to be passed directly as a prop, which, results in the track object being duplicated ingetServerSideProps
. It needs adjusting!