Click delay
Unanswered
Japanese Bobtail posted this in #help-forum
Japanese BobtailOP
Hi there. My search function is the only route (/search) in my app which is λ (dynamic server-rendered) on build time. That means this page is not cached. If i click the search button in menu with the Link-Component to open this route i get a delay from 1 to 2 seconds to wait after the click (at vercel in production). The loading.tsx is showing after the waiting time. What i am doing wrong or what can i do to debug this problem?
File structure is:
src/app/search/page.jsx
src/app/search/loading.tsx
export default function Search({ searchParams }) {
if (searchParams?.s) {
return <Result term={searchParams.s} />;
}
return (
<SearchInput />
);
}
File structure is:
src/app/search/page.jsx
src/app/search/loading.tsx
export default function Search({ searchParams }) {
if (searchParams?.s) {
return <Result term={searchParams.s} />;
}
return (
<SearchInput />
);
}