DogPawHat
DogPawHat
Explore posts from servers
CCConvex Community
Created by DogPawHat on 11/25/2024 in #show-and-tell
Tanstack Start/Convex 1app6stacks version
fetchQuerywill throw, so will ensureQueryData if there's no cached data and it called fetchQuery
13 replies
CCConvex Community
Created by DogPawHat on 11/25/2024 in #show-and-tell
Tanstack Start/Convex 1app6stacks version
prefetchQuery both returns no data (it's return type is Promise<void>) and it catches errors.
13 replies
CCConvex Community
Created by DogPawHat on 11/25/2024 in #show-and-tell
Tanstack Start/Convex 1app6stacks version
13 replies
CCConvex Community
Created by DogPawHat on 11/25/2024 in #show-and-tell
Tanstack Start/Convex 1app6stacks version
Nice. I've been trying to go deep on the loaders in router and start (I've a rough video demo of my own here https://discord.com/channels/1019350475847499849/1312052455055298610) but it's definitely a bit more complex. I might still be tweak in and then figure out a way to use Motion to animate the transition between routes
13 replies
CCConvex Community
Created by DogPawHat on 11/29/2024 in #show-and-tell
Tanstack Start/Convex 1app6stacks - Now with Turbo and video!
Can't fix it right now as I'm away with family for the weekend. Does it work on desktop at least?
7 replies
CCConvex Community
Created by DogPawHat on 11/29/2024 in #show-and-tell
Tanstack Start/Convex 1app6stacks - Now with Turbo and video!
LOC: 1083 Typescript lines, 1117 total with cloc . --exclude-dir=node_modules,.vercel,.vinxi,.git --exclude-ext=json,svg,yaml,txt --vcs git
7 replies
CCConvex Community
Created by DogPawHat on 11/25/2024 in #show-and-tell
Tanstack Start/Convex 1app6stacks version
Maybe once I've turbo it up.
13 replies
TTCTheo's Typesafe Cult
Created by Aweed on 11/25/2024 in #questions
Trpc with nextjs 15
You can also use trpc quite well with React Router and Tanstack Start if your not married to RSCs
6 replies
TTCTheo's Typesafe Cult
Created by Aweed on 11/25/2024 in #questions
Trpc with nextjs 15
Now RSCs themselves solve a lot of typesafe query problems, so as an alternative, just give the RSC the data server side and use https://next-safe-action.dev/ for mutationing actions
6 replies
TTCTheo's Typesafe Cult
Created by Aweed on 11/25/2024 in #questions
Trpc with nextjs 15
6 replies
TTCTheo's Typesafe Cult
Created by Aweed on 11/25/2024 in #questions
Trpc with nextjs 15
If you like trpc you can go ahead with using it on app router. Worth reading this I think https://trpc.io/docs/client/react/server-components
6 replies
CCConvex Community
Created by DogPawHat on 11/25/2024 in #show-and-tell
Tanstack Start/Convex 1app6stacks version
Yeah thanks for your work on the query integration. I'll be using it as a playground for silly optimization for a bit I think
13 replies
TTCTheo's Typesafe Cult
Created by GetPsyched on 9/28/2024 in #questions
Weird errors when using useQuery
You can ask on the Tanstack discord and see if dominick or tanner has a good answer
29 replies
TTCTheo's Typesafe Cult
Created by junglesquirrel on 11/21/2023 in #questions
Serving user uploaded content in NextJS - infrastructure without a CMS
6 replies
TTCTheo's Typesafe Cult
Created by junglesquirrel on 11/21/2023 in #questions
Serving user uploaded content in NextJS - infrastructure without a CMS
Tag your images with a uuid on upload and use that for your cache key.
6 replies
TTCTheo's Typesafe Cult
Created by junglesquirrel on 11/21/2023 in #questions
Serving user uploaded content in NextJS - infrastructure without a CMS
Yeah, when in doubt, cache, cache, cache.
6 replies
TTCTheo's Typesafe Cult
Created by junglesquirrel on 11/21/2023 in #questions
Serving user uploaded content in NextJS - infrastructure without a CMS
Where is NextJS itself hosted? I think the easised thing to do is use ISR on Vercel so you get caching on the edge by default. You have the main storage but not the CDN, and Vercel will give you that for free. If it's not Vercel, it's a bit harder depending on what you are doing. What version of next are you using and are you using app or pages router?
6 replies