Dismissing a Radix Dialog after a form submission

Поділитися
Вставка
  • Опубліковано 16 лис 2024

КОМЕНТАРІ • 62

  • @personcalledjames
    @personcalledjames Рік тому +49

    That little trick with `fieldset` and `group` is very very cool - I'll definitely need to keep a note of that. Thanks :)

  • @wtfnastia
    @wtfnastia 6 місяців тому +2

    You are a natural teacher.

  • @kakun7238
    @kakun7238 Рік тому +5

    oh wow i was just facing this issue where the form data was not resetting even after I closed the dialog and i was wondering why and right then i came across your video thank you so much much love! really loved the tips from your tailwind conf too!

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

    Thanks, the tip for dismiss the dialog helped a lot!

  • @joshdotmp4
    @joshdotmp4 Рік тому +29

    Great tutorial, very informative! Even more impressed with your code editing skills, probably the fastest I've ever seen in a tutorial and keeps everything moving fast and not wasting any time. The folding, multiple cursors, using abbreviations for autocomplete, etc. is on another level. I'm kind of medium skill with Vim bindings, and I would love to know your tips for moving as fast as you do!

    • @mryechkin
      @mryechkin Рік тому +13

      It's a thing of beauty, isn't it? He mentioned doing a video on this at some point, I hope we get to see it soon!

    • @al_mamun
      @al_mamun Рік тому +9

      @samselikoff - man, we definitely need a video on this, also on the entire editor setup 🙏

    • @ghalamat2821
      @ghalamat2821 Рік тому

      the power of vim

    • @heychazza
      @heychazza Рік тому +1

      I'd love a video or even a ebook/course on this! I'd happily pay for pre-configured VS Code set-up (plugins, keybinds etc) to get faster with these

  • @vinsonwei1306
    @vinsonwei1306 5 місяців тому

    Wow, didn't know you could retrive form data just like that. Great tip.

  • @DEV_XO
    @DEV_XO Рік тому

    More Radix / Framer content please! Thank you! ❤

  • @talhazaryab
    @talhazaryab Рік тому +6

    Just watched your course on egghead. Really inspired by your teaching style. Your skills are amazing. I wish to become like you someday.
    Thanks for another upload.

  • @IkraamDev
    @IkraamDev Рік тому

    Being watching your videos for years now. Keep it up!

  • @tech3425
    @tech3425 Рік тому

    Love the fieldset trick!

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

    You are a living legend mate!

  • @pheisar
    @pheisar Рік тому

    Bang! Another quality upload! At this rate, I gotta buy some quality proof armor because I'm being overwhelmed here. Thanks, Sam!

  • @ThugLifeModafocah
    @ThugLifeModafocah Рік тому

    Your content is priceless. Thank you very much.

  • @roguesherlock
    @roguesherlock Рік тому

    fieldset bit was pretty neat sam. Overall really loved the video and it's pacing.

  • @deniyii
    @deniyii Рік тому +2

    Man your content is so consistently high quality!

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

    Woah.. Didn't know about the event.currenttarget trick for form events. Also, your vim chops are buttery smooth.

  • @tech3425
    @tech3425 Рік тому

    Dependency inversion... noice!

  • @ramsayromero8495
    @ramsayromero8495 Рік тому +1

    Great video! loved the fieldset and the button spinner trick! So simple! I feel like an idiot for using getBoundingClientRect to measure my button and correctly place the spinner without the button size changing lol

  • @DioArsya
    @DioArsya Рік тому

    amazing as always! 🔥🔥

  • @HeyNoah
    @HeyNoah Рік тому

    Really slick!! 🔥

  • @javiermadueno
    @javiermadueno Рік тому

    Greate video! As always. I think this could be the perfect scenario where XState can be used.

  • @raphauy
    @raphauy Рік тому

    Awesome!!!

  • @RakshitRaj-n3y
    @RakshitRaj-n3y Рік тому

    Thank you it was very help ful
    =

  • @EmmanuelOdii80
    @EmmanuelOdii80 8 місяців тому

    great video!

  • @rajaryyn
    @rajaryyn Рік тому

    Hey, please upload your video daily i really like it

  • @wfl-junior
    @wfl-junior Рік тому

    I've been using Framer Motion for animation dialogs, had no idea radix had support for unmounting animations out of the box xD

  • @undefined_null
    @undefined_null Рік тому +1

    Awesome content as usual 🤝.
    I'm curious on how you select multiple occurrences of the word content at 17:12 while using vim motions.
    Also it would be helpful if you could make a short videos about all your vim motions/shortcuts that you use regularly inside vs-code.

    • @samselikoff
      @samselikoff  Рік тому +5

      Thanks! That's using VSCode's built-in "Add Selection To Next Find Match" which by default is mapped to +D. So I type `v` at the beginning of the word to go into visual mode, `e` to move to the end of the word, then +D to get the next occurrence of "content". Then I press `c` for vim's change text and start typing.
      Thanks for asking about tips, it's good to hear what people want + this is my most popular request by far. Am definitely planning on making some content for it soon!

    • @undefined_null
      @undefined_null Рік тому

      @@samselikoff I'll definitely try it out, thanks.
      Looking forward to your next video.

  • @bysolly
    @bysolly Рік тому

    Great 💪

  • @joyahmed963
    @joyahmed963 Рік тому

    Guru 🧘🏼❤

  • @markup100
    @markup100 Рік тому +1

    It is cool to learn about Radix & tailwind, but we really need a tutorial on how you setup and use your code editor! You seem extreeemely efficient while coding, how do you do that *_*

  • @carlosraul6578
    @carlosraul6578 Рік тому +1

    wow you are impressive, everything I have imagined you have been able to do with React, Tailwind and Framer motion, but are you capable of creating a slider menu ?, like the WhatsApp sliders menus
    I tried, but I fail miserably hahah

  • @amined801
    @amined801 Рік тому

    nice tutorial, but i just wonder what will be the best way to handle validation? i would like to hear some suggestions guys

  • @VincentParrett
    @VincentParrett Рік тому

    Great demo, putting it to good use. Just an FYI - if you forget to add the keyframes to the css and leave the animations styles - closing the dialog doesn't work - wasted so much time looking at everything else!

  • @pedromiranda9946
    @pedromiranda9946 Рік тому

    I wish I'd learned about this disabled fieldset trick before. Great content!
    By the way is that Dracula Pro or some custom theme that I just can't seem to find? 😅

  • @naruclon
    @naruclon Рік тому

    Great. Do you have any resource to make a "offcanvas" using the radix dialog package?

  • @ikmalfitri2635
    @ikmalfitri2635 Рік тому

    Hey Sam, great video as always. Im struggling to find a way to have my custom component which is not a Radix UI to use accent color or other theme within each scope

  • @pratikchakravorty983
    @pratikchakravorty983 Рік тому +1

    What is that rename plugin you used?

  • @qrx.4596
    @qrx.4596 3 дні тому

    Is it okay to animate Dialogs with Framer Motion? I use Framer Motion in many aspects of the app and I'd like to stay consistent. Are there any flaws of doing so?

  • @gr5125
    @gr5125 Рік тому

    What is this sorcery shortcut which capitalises the setter function on the useEffect?!!

  • @sagarchilivery6112
    @sagarchilivery6112 Рік тому

  • @sebastianfast3501
    @sebastianfast3501 Рік тому

    But that wont make you able to close the modal with the deafult close X button on the top right?

  • @stevecastaneda
    @stevecastaneda Рік тому

    Do you have any advice in mind for when to use CSS keyframes versus reaching for a package like framer motion?

    • @samselikoff
      @samselikoff  Рік тому +9

      For simple animations keyframes are great! I like Framer Motion for my own projects because it works on any component + the spring physics are great. I like keeping things in one paradigm usually too so even for simple stuff I tend to default to FM.

  • @dvlden
    @dvlden Рік тому

    I always wondered, is there any performance penalty when using a component like "Dialog" inside of another component that is looped through. In this case, it makes each card have its own modal dialog...
    Vs if dialog is outside of looped component and data in the dialog is coming from an reactive state that the "edit action" would set.
    Can you clarify for me, I always did the latter in my projects.

    • @samselikoff
      @samselikoff  Рік тому +2

      No penalty, when the dialog is closed the content/portal/overlay components aren't rendered. It's one of the main benefits of Radix's API, that you can co-locate it right where you need it!

    • @dvlden
      @dvlden Рік тому

      @@samselikoff Understood. Would you know if this would be same for HeadlessUI? Loving Radix Primitives and using it always with React, but with Vue... I have to go with HeadlessUI. Asking, cause having it nested within a component it belongs to, simplifies many things.

    • @samselikoff
      @samselikoff  Рік тому +2

      @@dvlden I'd have to look at the Vue code but I'm guessing it does exactly the same thing, the React version of Headless UI does use portals and is also fine to render in a loop 👍 In general you shouldn't worry about how many elements are rendered, modern frameworks are very fast and designed to handle that sort of thing well so you can focus on staying productive!

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

    Dialog must be outside the list right?

  • @walterlol
    @walterlol Рік тому

    why do you use let instead of const

  • @Smartercow
    @Smartercow Рік тому

    Why 'let' instead of 'const' ?

  • @codefork94
    @codefork94 Рік тому

    Vscode theme?

  • @good-dev-student
    @good-dev-student Рік тому

    Use Svelte instead ❤

  • @zlatkoiliev8927
    @zlatkoiliev8927 Рік тому

    why is the quality that bad?!?

    • @samselikoff
      @samselikoff  Рік тому

      hm not sure, what do you mean? is it not playing in hd?

    • @zlatkoiliev8927
      @zlatkoiliev8927 Рік тому

      @@samselikoff no it was 360 just a moment ago, maybe something was wrong with youtube

    • @Balance-8
      @Balance-8 Рік тому +4

      @@zlatkoiliev8927 For the first few minutes after an upload, youtube only has 360p available. This is due to how long it takes to render the other HD elements