order of array mismatch for elements passed via getServerSideProps's props and UI
Unanswered
Greater Flamingo posted this in #help-forum
Original message was deleted.
1 Reply
Greater Flamingo
simplifed example
// Server
const getServerSideProps: GetServerSideProps = async (){
...
...
return {
props: {
arr: [1,2,3,4]
},
};
}
// Client
const function Page(props){
const {arr} = props
arr;// [1,3,2,4]
...
...