State management with Preact Signals - Getting started with the new package [2022] (Preact/React)

Поделиться
HTML-код
  • Опубликовано: 3 дек 2024
  • НаукаНаука

Комментарии •

  • @bufootballa
    @bufootballa 2 года назад +2

    Excellent first look at signals! Just randomly found your channel and subscribed after watching. Good luck with the channel as you have an excellent way of explaining while you code through things! Can't wait to see more of your content!

  • @AtRiskMedia
    @AtRiskMedia 10 месяцев назад

    great vid. (i had to shield my eyes from the light mode tho).
    more preact + signals content would be awesome

  • @ivansativ5450
    @ivansativ5450 Год назад

    this is neat how-to video, I'd appreciate if you'd compare the performance to a signal-less React app of the same structure as the motivation of using signals is performance improvements

  • @RasmusSchultz
    @RasmusSchultz 2 года назад +1

    15:05 something is wrong here - notice the count on the console? I think you're scheduling another effect with every change, like they're stacking up and never get cleaned up...?

    • @codingwithrobby
      @codingwithrobby  2 года назад +1

      Good catch. I'm guessing that it's triggering twice because of the useComputed, but this is definitely something I should look into.

    • @MrGarkin
      @MrGarkin 2 года назад

      ​@@codingwithrobby it triggers extra time on each render. In the end it's actually called 8 times pre click.
      Don't call `effect()` inside render function directly. Wrap it using hooks API and don't forget to dispose correctly.

    • @omereker8824
      @omereker8824 2 года назад

      I dont know if there is a strict mode on preact like react has, but it might be rendering twice because of that

  • @meherajsheikh4488
    @meherajsheikh4488 2 года назад

    Please make a video on pre-rendering & serviceWorkers & ssg & ssr in preact....thank you

  • @MarkConstable
    @MarkConstable Год назад

    Preact + signals in Fresh Deno would be great.

  • @MrBl0m
    @MrBl0m 2 года назад

    Also thank you for the video :) . Can you please share your vs code plugins for the auto import thank you

  • @MrBl0m
    @MrBl0m 2 года назад

    why use it as a local state instead of useState ?