Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update StoryCommentsSection.tsx to accurately reflect Relay tutorial #327

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

danielstocks
Copy link

Following the steps in the Connections & Pagination part of the Relay Tutorial is clearly states that:

At this point, you should see up to three comments on each story. Some stories have more than three comments, and these will show a "Load more" button, although it isn't hooked up yet.

But the example only loads 1 comments, and there is no "Load more" button present. The tutorial assumes that this code is already present and that is confusing to the reader.

In this PR I've updated StoryCommentsSection.tsx to reflect the code examples & instructions in the tutorial.

Thanks!

Following the steps in the [Connections & Pagination](https://relay.dev/docs/next/tutorial/connections-pagination/#implementing-load-more-comments) part of the Relay Tutorial is clearly states that: 

> At this point, you should see up to three comments on each story. Some stories have more than three comments, and these will show a "Load more" button, although it isn't hooked up yet.

But the example only loads 1 comments, and there is no "Load more" button present. The tutorial assumes that this code is already present and that is confusing to the reader.

In this PR I've updated `StoryCommentsSection.tsx` to reflect the code examples & instructions in the tutorial.

Thanks!
@danielstocks danielstocks changed the title Update StoryCommentsSection.tsx to reflect Relay tutorial Update StoryCommentsSection.tsx to accurately reflect Relay tutorial Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants