You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imagine I'm fetching posts from a system that has a rate limit.
Suppose I'm able to fetch 100 posts at a time and I got 300 of them.
in getStaticPathts, I'm getting the list of handles(slugs/ids) for the entire list.
Once getStaticPaths returns it's value getStaticProps runs for every post.
That results in a problem where the initial 100 posts get fetched, skipping the remaining 200.
I tried different approaches, couldn't make it work, would love to hear your ideas. Feels like there's a solution for that and I'm missing it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Imagine I'm fetching posts from a system that has a rate limit.
Suppose I'm able to fetch 100 posts at a time and I got 300 of them.
in
getStaticPathts
, I'm getting the list of handles(slugs/ids) for the entire list.Once
getStaticPaths
returns it's valuegetStaticProps
runs for every post.That results in a problem where the initial 100 posts get fetched, skipping the remaining 200.
I tried different approaches, couldn't make it work, would love to hear your ideas. Feels like there's a solution for that and I'm missing it.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions