Skip to content

Commit

Permalink
improve home page, adopt main navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
instana-ibm committed Nov 16, 2024
1 parent 6366052 commit 9b5110d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions app/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ React and React Server Components and Next.js App Router.

### Choose one of these different variants of data loading:

- [Next based modern](/next)
**Next.js app router based:**
Fetching asynchronously, on demand (not fully optimized)
- [Old way](/restful) **All or nothing:**
1. [GraphQL + Relay](/relay)
**GraphQL + Relay** - Using user's GH auth token!
Fetches all information from the running relay server
2. [Next based modern](/next)
**Next.js app:** GH-Rate-limited, partially SSR, fails on authentication
3. [Old way](/restful)
GH-Rate-limited _for comparison only_ old-style!
Fetching all data in a top-level `useEffect()` + props-drilling
- [GraphQL + Relay](/relay)
**GraphQL + Relay**
fetches all information from a running relay server (a lambda function)

Here you can find the [storybook](https://www.chromatic.com/library?appId=5afab010f1d19900240b5469)

Expand Down
12 changes: 6 additions & 6 deletions components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,16 @@ function getNavItemsForRepo(owner, repo): NavItem[] {
if (owner && repo)
return [
{
label: <span>Next.js+rfc220</span>,
href: '/next/' + ownerRepo,
label: <span>Relay GraphQL</span>,
href: '/relay/' + ownerRepo,
},
{
label: <span>Classic</span>,
href: '/restful/' + ownerRepo,
label: <span>Next SSR</span>,
href: '/next/' + ownerRepo,
},
{
label: <span>Relay GraphQL</span>,
href: '/relay/' + ownerRepo,
label: <span>Old Style</span>,
href: '/restful/' + ownerRepo,
},
];

Expand Down

1 comment on commit 9b5110d

@vercel
Copy link

@vercel vercel bot commented on 9b5110d Nov 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.