Skip to content

Commit

Permalink
add how to test
Browse files Browse the repository at this point in the history
  • Loading branch information
vvo committed Nov 20, 2023
1 parent f68142f commit 5ccbb0d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export default function AppRouterRedirect() {
<main className="p-10 space-y-5">
<Title subtitle="+ client components, route handlers, redirects, and fetch" />

<p className="italic max-w-xl">
How to test: login and refresh the page to see iron-session in action.
</p>

<div className="grid grid-cols-1 gap-4 p-10 border border-gray-500 rounded-md max-w-xl">
<Form />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ export default function AppRouterRedirect() {
}
/>

<p className="italic max-w-xl">
How to test: login and refresh the page to see iron-session in action.
Bonus: open multiple tabs to see the state being reflected by SWR
automatically.
</p>

<div className="grid grid-cols-1 gap-4 p-10 border border-gray-500 rounded-md max-w-xl">
<Form />
<div className="text-gray-700 space-y-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export default async function AppRouter() {
<main className="p-10 space-y-5">
<Title subtitle="+ server components, and server actions" />

<p className="italic max-w-xl">
How to test: login and refresh the page to see iron-session in action.
</p>

<div className="grid grid-cols-1 gap-4 p-10 border border-gray-500 rounded-md max-w-xl">
<Suspense fallback={<p className="text-lg">Loading...</p>}>
<Form />
Expand Down

0 comments on commit 5ccbb0d

Please sign in to comment.