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
{{ message }}
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
Currently our api is mostly a legacy from the initial version and is not really simple and pretty even if "it works". We have some limitations and some stuff are not optimal
we have a single collection (that's not a big deal for me, since you can easily filter but I understand this can looks like a limitation) Add support for multiple collection #791
we publicly rely on react context, which is not good and intuitive (lot's of people say "it's not working" and they just forget to add contextTypes. We should hide this behind a provider component Consider dropping the usage of React context #304
we render content to html string which have some limitation, we should support more output, LIKE REACT COMPONENTS FOR EXAMPLE Use JS instead of JSON for pages #434
Currently we could use more tricks but we discussed already about smarter ideas on how to have a better intuitive, minimalist API which will even unlock feature like pagination #657
⚠️ I didn't mention graphql since I don't think it will be really intuitive for most people. Gastby 1.0 branch is probably doing awesome stuff with that, but I have to admit I found that a bit overkill, especially for simple websites or documentation. It's probably very powerful but maybe a bit too much for most cases when you have data in collection(s) and just want to iterate on it (blog, photo gallery etc). You tell me.
I will start to work on something based on what @bloodyowl developed in this thread but feel free to comment and dissuss here about the approach YOU think is the best. There is no bad ideas, just ideas we can learn from ;)
The text was updated successfully, but these errors were encountered:
No more react-router (anyway, v4 will make react-router support very limited as we just cannot statically render all routes (as recursive routes are possible))
Next will offer an official API to handle static rendering vercel/next.js#70
Anyway, we might probably stop relying on a loader to consume markdown|* files with probably a simple interface like metalsmith that will still allow a plugin API.
Why? Because we need something generic to allow consuming files or promise (rest api, graphql api...)
Currently our api is mostly a legacy from the initial version and is not really simple and pretty even if "it works". We have some limitations and some stuff are not optimal
I also want to add this
Currently we could use more tricks but we discussed already about smarter ideas on how to have a better intuitive, minimalist API which will even unlock feature like pagination #657
Fresh API ideas have been exposed here #713 (comment)
I will start to work on something based on what @bloodyowl developed in this thread but feel free to comment and dissuss here about the approach YOU think is the best. There is no bad ideas, just ideas we can learn from ;)
The text was updated successfully, but these errors were encountered: