Skip to content

Commit

Permalink
Add text explaining suspense-enabled router transition
Browse files Browse the repository at this point in the history
  • Loading branch information
steida committed May 24, 2023
1 parent f5fb9d7 commit c0b01cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions apps/web/components/NextJsExample.tsx
Expand Up @@ -350,6 +350,10 @@ export const NextJsExample: FC = () => {
});
}}
/>
<p>
Using suspense-enabled router transition, you will not see any loader
or jumping content.
</p>
</nav>
{todosShown ? <Todos /> : <TodoCategories />}
<OwnerActions />
Expand Down
5 changes: 4 additions & 1 deletion examples/nextjs/app/page.tsx
Expand Up @@ -352,12 +352,15 @@ const Page: FC = () => {
});
}}
/>
<p>
Using suspense-enabled router transition, you will not see any loader
or jumping content.
</p>
</nav>
{todosShown ? <Todos /> : <TodoCategories />}
<OwnerActions />
</Suspense>
);
// return <div>hovno</div>;
};

export default Page;

1 comment on commit c0b01cd

@vercel
Copy link

@vercel vercel bot commented on c0b01cd May 24, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

evolu – ./

evolu.vercel.app
evolu-evolu.vercel.app
www.evolu.dev
evolu.dev
evolu-git-main-evolu.vercel.app

Please sign in to comment.