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

Add next and previous article links to article detail view #102

Closed
wants to merge 4 commits into from

Conversation

WakuwakuP
Copy link
Owner

@WakuwakuP WakuwakuP commented Nov 6, 2024

Related to #101


For more details, open the Copilot Workspace session.

Copy link

vercel bot commented Nov 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
miyulab-officialsite-app ❌ Failed (Inspect) Nov 6, 2024 7:07pm

* Modify `Link` component to include `className` directly instead of using `a` tag
* Update previous and next article links to use the modified `Link` component
…Page`

* Create `cachedGetNextArticle` and `cachedGetPreviousArticle` functions with caching similar to `cachedGetContentDetail`
* Replace direct calls to `getNextArticle` and `getPreviousArticle` with cached versions in `ContentDetailPage`
* Pass the next and previous articles as props to the `ContentDetail` component
* Change cache keys and tags for `cachedGetNextArticle` and `cachedGetPreviousArticle` to match `cachedGetContentDetail`
* Fetch next and previous articles using `cachedGetNextArticle` and `cachedGetPreviousArticle`
* Pass next and previous articles as props to `ContentDetail` component
@WakuwakuP WakuwakuP closed this Nov 6, 2024
@WakuwakuP WakuwakuP deleted the add-next-prev-links branch November 6, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant