parameter666
TTCTheo's Typesafe Cult
•Created by parameter666 on 8/28/2023 in #questions
SSR and page transitions
I've got somewhere nicer than a few days ago by utilizing layout.js so I'm happy!
12 replies
TTCTheo's Typesafe Cult
•Created by parameter666 on 8/28/2023 in #questions
SSR and page transitions
@Josh How would you like to have that implemented?
I'm thinking something like a delay attribute on <Link /> or something like a frontend middleware.
12 replies
TTCTheo's Typesafe Cult
•Created by parameter666 on 8/27/2023 in #questions
import pageData... VS pageData = await fetchPageData()...
@whatplan Many thanks for getting me in the right direction.
Putting the client-component in a layout seems to have solved it.
Any ideas why this pattern works?
15 replies
TTCTheo's Typesafe Cult
•Created by parameter666 on 8/27/2023 in #questions
import pageData... VS pageData = await fetchPageData()...
I took it off for now and this is why it is running smoothly, as it seems.
<ContactMe /> has no useEffect and it just freezes with it there so no idea. Hehe.
15 replies
TTCTheo's Typesafe Cult
•Created by parameter666 on 8/27/2023 in #questions
import pageData... VS pageData = await fetchPageData()...
Now there are no more client-components and it's running smooth.
The last client component was <ContactMe />
Any idea what I was doing there that made it freeze?
15 replies
TTCTheo's Typesafe Cult
•Created by parameter666 on 8/27/2023 in #questions
import pageData... VS pageData = await fetchPageData()...
Wait. I found one more client component, let's see now
15 replies
TTCTheo's Typesafe Cult
•Created by parameter666 on 8/27/2023 in #questions
import pageData... VS pageData = await fetchPageData()...
I had a client-part for kicking off a masonry layout but I threw it away so there are no client components left
15 replies
TTCTheo's Typesafe Cult
•Created by parameter666 on 8/27/2023 in #questions
import pageData... VS pageData = await fetchPageData()...
15 replies
TTCTheo's Typesafe Cult
•Created by parameter666 on 8/27/2023 in #questions
import pageData... VS pageData = await fetchPageData()...
Thanks. It felt better generally after changing to using fetch for getting the data everywhere but I have something that makes the page freeze up after a couple of navigations.
The data that drives the page is a json I keep in the nextjs filesystem.
Should that work?
I'm staging it here. The freeze occures when going between the /services subpages
https://temp-freelancer-temp.vercel.app/
@whatplan Could you see what I'm doing wrong if I shared the repo?
15 replies