NextJs how to deal with fetching and a loop
I have a question how can I deal with fetching through loop in getStaticProps, because when I do that the array is empty. It is caused by asynchronous code. If I pass ID array and put logic into react component it works fine. Should I stick with component approach or do it in getStaticProps. If… Read More NextJs how to deal with fetching and a loop