elmasse / nextein

A static site generator with markdown + react for Next.js
https://nextein.elmasse.io
ISC License
898 stars 34 forks source link

Support hooks / getStaticProps ? #307

Closed elmasse closed 4 years ago

elmasse commented 4 years ago

First ones could be

elmasse commented 4 years ago

Hooks are not really possible since all pages read from a static async getInitialProps so we need to use an HOC to wrap this for a Page. On the other hand, current implementation of getStaticProps are different and must be exported by each page making usage of this useless from a library perspective.

Renaming the issue and closing to keep track of this.