Hamza K Dev
Hamza K Dev
TTCTheo's Typesafe Cult
Created by Hamza K Dev on 5/13/2024 in #questions
Managing Multiple Promises in Next.js
@michaeldrotar , Agreed, I have implemented TRPC for views that have many independent components.
26 replies
TTCTheo's Typesafe Cult
Created by Hamza K Dev on 5/13/2024 in #questions
Managing Multiple Promises in Next.js
I don't see any freaking point of key prop in Suspense.
26 replies
TTCTheo's Typesafe Cult
Created by Hamza K Dev on 5/13/2024 in #questions
Managing Multiple Promises in Next.js
So here as you can see Graph and Reports and in their own suspense boundary, on initial reload, it works as expected. but after applying filters, there is no loading state, because both components are fetched again.
26 replies
TTCTheo's Typesafe Cult
Created by Hamza K Dev on 5/13/2024 in #questions
Managing Multiple Promises in Next.js
26 replies
TTCTheo's Typesafe Cult
Created by Hamza K Dev on 5/13/2024 in #questions
Managing Multiple Promises in Next.js
LOL
26 replies
TTCTheo's Typesafe Cult
Created by Hamza K Dev on 5/13/2024 in #questions
Managing Multiple Promises in Next.js
doesn't seem to be caching anything
26 replies
TTCTheo's Typesafe Cult
Created by Hamza K Dev on 5/13/2024 in #questions
Managing Multiple Promises in Next.js
I have tried React cache as well
26 replies
TTCTheo's Typesafe Cult
Created by Hamza K Dev on 5/13/2024 in #questions
Managing Multiple Promises in Next.js
There should be a better way to acheive this. Suspense should be smart enough to realize that the key hasn't changed so it shouldn't refetch, like we have usememo.
26 replies
TTCTheo's Typesafe Cult
Created by Hamza K Dev on 5/13/2024 in #questions
Managing Multiple Promises in Next.js
Directly calling the prisma db
26 replies
TTCTheo's Typesafe Cult
Created by Hamza K Dev on 5/13/2024 in #questions
Managing Multiple Promises in Next.js
I am not using Fetch.
26 replies
TTCTheo's Typesafe Cult
Created by Hamza K Dev on 5/13/2024 in #questions
Managing Multiple Promises in Next.js
Yes.
26 replies
TTCTheo's Typesafe Cult
Created by Hamza K Dev on 5/13/2024 in #questions
Managing Multiple Promises in Next.js
No description
26 replies