RFC - More modular way to write getStaticPaths/getStaticProps/getSSP #348
Unanswered
Vadorequest
asked this question in
Show and tell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
PR: #346 and #347
Very basically, I've changed the way to write the 3 main functions for generating Next.js pages.
The new way allows for a more modular design and better reusability of the source code.
Before:
After:
Now, the call site (usually, the page itself) has more power, it can re-use part of the logic while providing
options
to disable some behaviour.Share your thoughts! 😄
Beta Was this translation helpful? Give feedback.
All reactions