Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Fetching post data #125

Closed
knoebelja opened this issue Apr 27, 2018 · 2 comments
Closed

Fetching post data #125

knoebelja opened this issue Apr 27, 2018 · 2 comments
Assignees
Milestone

Comments

@knoebelja
Copy link
Contributor

Hey @elmasse,
I'm still loving nextein!

Currently, we can use withPosts to to grab all of the posts content and data.
Is there a plan to make it so only the data without the content is fetch-able?

This kind of feature would be really cool for dynamic sidebars and pagination!

@elmasse elmasse self-assigned this Apr 27, 2018
@elmasse
Copy link
Owner

elmasse commented Apr 27, 2018

Hey @knoebelja thanks!

That sounds quite interesting. I'll do some little research on that. I like the idea, maybe we can pass an option to withPosts like withPosts({ content: false })(Page) or maybe we will need a different HOC to avoid breaking things.

Another thing I was thinking about is to provide a replacement for HOCs, like a Page component that will retrieve posts in a render props (maybe for next minor version) in that way this can be implemented as a prop in the Page component. If you want to discuss about that I'm more than open to suggestions. There is a gitter channel in case you want to join: http://gitter.im/nextein/Lobby

@knoebelja
Copy link
Contributor Author

That implementation sounds perfect. I would also like to hear more about this Page component idea..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants