The biggest mistake with Next.js Server Actions (And how to fix It)

Поділитися
Вставка

КОМЕНТАРІ • 17

  • @patricioturpin6627
    @patricioturpin6627 3 місяці тому

    In this particular example, i think it will also be a good thing if you explain the Dialog open and onOpenChange props, if u dont have them, the dialog will not close. Good vid!

  • @regilearn2138
    @regilearn2138 7 місяців тому +1

    would like to request how to upload files to AWS s3 bucket using lambda functions and and how to do crud with dynmodb with NEXT.js express node and typescript

    • @nikolovlazar
      @nikolovlazar  6 місяців тому +1

      That's an interesting topic. Thank you for the suggestion. We might end up doing something like that in the future.

  • @harsh_9797
    @harsh_9797 6 місяців тому

    Which theme are you using?

    • @nikolovlazar
      @nikolovlazar  6 місяців тому

      Hey. This was Aura Dark: marketplace.visualstudio.com/items?itemName=DaltonMenezes.aura-theme

  • @hedigamingfortnite6626
    @hedigamingfortnite6626 7 місяців тому

    bro what is your vscode theme ? Nice Video !

    • @nikolovlazar
      @nikolovlazar  7 місяців тому

      Thanks! It's Aura Dark: marketplace.visualstudio.com/items?itemName=DaltonMenezes.aura-theme

  • @Epirium
    @Epirium 7 місяців тому

    This is awesome ❤

  • @hakanates1188
    @hakanates1188 2 місяці тому

    ahhh I wish i saw this 1 month ago....... thanks for the great tip but I got fired already 1 month ago xd

    • @nikolovlazar
      @nikolovlazar  2 місяці тому +1

      Ah I’m sorry to hear that 🫤 hope you find a job soon.

    • @hakanates1188
      @hakanates1188 2 місяці тому

      @@nikolovlazar your videos will definitely help man thank you!

  • @FULTONOFFICIALKFV
    @FULTONOFFICIALKFV 7 місяців тому

    Bro very good but you did not explain it well for beginners, you should maybe show the success and error message in your actions where you returned them

    • @nikolovlazar
      @nikolovlazar  7 місяців тому +1

      Thanks for the feedback. Server Actions return objects, so for error I'm just returning a plain object with an error property:
      return { error: 'Something went wrong' };

    • @FULTONOFFICIALKFV
      @FULTONOFFICIALKFV 7 місяців тому +1

      @@nikolovlazar Perfect :)

  • @velinovleonid
    @velinovleonid 7 місяців тому

  • @prashlovessamosa
    @prashlovessamosa 7 місяців тому

    Great