Coding the add exercise feature in my app (TanStack Start, ShadCN, Drizzle, Postgres)

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.พ. 2025
  • Useful Links
    💬 Discord: / discord
    🔔 Newsletter: newsletter.web...
    📁 GitHub: github.com/web...
    📺 Twitch: / webdevcody
    🤖 Website: webdevcody.com

ความคิดเห็น • 27

  • @butwhothehellknows
    @butwhothehellknows 5 วันที่ผ่านมา +16

    You’re doing great babe!

  • @armaandhanji2112
    @armaandhanji2112 5 วันที่ผ่านมา +1

    Hey Cody. Really loving this series on TSS! Keep it up!

  • @JoeceOfficial
    @JoeceOfficial 5 วันที่ผ่านมา +1

    not sure if you showed it in your last videos, but it's very smart that you're using a set screen size for development - might start doing that myself so I don't have to worry about my app looking fine on a 2k monitor, but weird once you start scaling down

  • @yasseralsaidi
    @yasseralsaidi 4 วันที่ผ่านมา

    Thanks Cody, I’m enjoying the series!. I’m playing around with TanStack Start too.

  • @r34ct4
    @r34ct4 5 วันที่ผ่านมา

    Awesome! I've been following you for a while and made my own recently. This will be great to follow along with you to see if I have been using best practices.

  • @CodingAfterThirty
    @CodingAfterThirty 5 วันที่ผ่านมา

    Dude, TanStack start is awesome. Just had Tanner on a podcast. He is a cool dude.

    • @WebDevCody
      @WebDevCody  5 วันที่ผ่านมา +1

      For sure man, and I have high hopes for this framework!

  • @SeanCassiere
    @SeanCassiere 5 วันที่ผ่านมา +3

    The issue at 30:50 comes from the `getExercisesUseCase()` not being wrapped in `createServerFn`. When you wrap it in createServerFn it makes it remains the same in the server content, whilst the client context gets an RPC call to the server to execute the server code.
    You can do `loader: () => getExercisesFn()` .

    • @WebDevCody
      @WebDevCody  5 วันที่ผ่านมา

      Thank you!

    • @leonardsam7083
      @leonardsam7083 4 วันที่ผ่านมา

      Yes, loaders are not run server-side only but also on client-side after hydration, so without the `createServerFn` to isolate context, you're essentially trying to access drizzle on the client.

  • @SzymonPrusak
    @SzymonPrusak 4 วันที่ผ่านมา +2

    start is far away from usable, but I'm running just tanstack-router spa with hono backend and its amazing. I'm not sure why would anyone ssr an app

  • @DevLeonardo
    @DevLeonardo 5 วันที่ผ่านมา +2

    Not sure about what you wanted to do at 3:49 but maybe you were missing an in exercise.tsx after L16? So that you can render exercise.add.tsx and exercise.$id.tsx there

  • @gfocaraccio
    @gfocaraccio วันที่ผ่านมา

    I like your convention of "use cases" but not sure I understand it fully.. do you have a video where you elaborate on this?

  • @CodingAfterThirty
    @CodingAfterThirty 5 วันที่ผ่านมา

    Lol. I need to watch how you set up ShadCN, I had a weird issue.

  • @yourgw
    @yourgw 5 วันที่ผ่านมา

    Loader fn is isomorphic, means that it runs both on server and client, therefore you actually imported drizzle to client and it broke. You have to use the serverFn in loader to make it work instead of just plain function with drizzle inside.

    • @WebDevCody
      @WebDevCody  5 วันที่ผ่านมา

      I recently talked with tanner and he gave me a good overview of everything, just learned this

  • @ckm4415
    @ckm4415 5 วันที่ผ่านมา

    Hello cody
    I'm korean and I am learning a lot by watching your videos
    Don't you use Form Components from next.js15?

  • @aincode
    @aincode 4 วันที่ผ่านมา

    Which do you think is better for having an online presence: a TH-cam channel or a blog?

    • @WebDevCody
      @WebDevCody  4 วันที่ผ่านมา

      Channel

  • @AkshatRamanathan
    @AkshatRamanathan 2 วันที่ผ่านมา

    Love the videos. But recommend reading the docs a lot more carefully to avoid footguns and have a smoother experience. But a good debugging demo for beginners

    • @WebDevCody
      @WebDevCody  2 วันที่ผ่านมา

      Yeah I should

  • @Matheus_1582
    @Matheus_1582 4 วันที่ผ่านมา

    Oi, você ainda faz atualização de sua linguagem CIVET.

  • @ianfrye8988
    @ianfrye8988 5 วันที่ผ่านมา

    If you put it in an exercise folder with an index and and add it would work.

  • @antsii
    @antsii 3 วันที่ผ่านมา

    What exactly is better than ln nextjs 😂

  • @SeanCassiere
    @SeanCassiere 5 วันที่ผ่านมา

    4:16 Solved by having `dashboard/_layout/exercise.index.tsx` and `dashboard/_layout/exercise.add.tsx`.

  • @dundotgg
    @dundotgg 4 วันที่ผ่านมา

    how to disable auto translate on your video title? the translation is suck. better if i read it in english