React Native State Management: Zustand + MMKV = 🔥

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

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

  • @Mohannadhamdy
    @Mohannadhamdy 9 месяцев назад +5

    Very well done Simon! you have a weird way of making everything so easy! thank you for your efforts 👏

  • @emmanuelnyatepe8045
    @emmanuelnyatepe8045 22 часа назад

    Thank Si mon
    I watched your video at the Expo Ghana event on DOM elements in react native and i was amazing😘😘🙌🙌

  • @Adamskyization
    @Adamskyization Месяц назад

    Hey Simon, instead of restarting vs-code. you can do cmd + shit -> reload -> choose "reload window". it is faster and does the same thing as a restart, and nothing get's lost not even the terminal session.

  • @Adamskyization
    @Adamskyization Месяц назад

    It's a mistake to distruct with Zustand useStore hook, `const { bla foo } = useStore()`. It will make you component render every time anything in the store changes, instead only the ones you actually use for the component.

  • @ferrad1
    @ferrad1 Год назад +1

    I love it ! I just subscribed to the channel ! Thank you sir

  • @shrinidhihegde1713
    @shrinidhihegde1713 4 месяца назад +1

    bro add time stamp like in which time what u did like that because i am here to watch how to implement mmkv in expo app i need to search for in what time you implemented it actually.... it is lot of time consuming

  • @mishen-thakshana
    @mishen-thakshana 10 месяцев назад

    Thanks for this. Will you be coming live soon?

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

    Sir, have you made a video on how to make "Pay as you like" like the one in website of "Elementary OS"? Then go to payment section. I want to implement such thing on my website. Thank you very much

  • @DarkMefisto1991
    @DarkMefisto1991 Месяц назад

    i don't understand why you use mmkv in zustand just for manage the cart storage, but not for the rest..

  • @angeromeogouebi2948
    @angeromeogouebi2948 Год назад +1

    mmkv react native doesn't work on my windows 11 pc,
    can you help me

  • @fosbergaddai4996
    @fosbergaddai4996 Месяц назад

    I am trying this in 2024 but MMKV does not still seem to work with Expo Go so I am using Zustand + Async Storage, which does not seem quite cool

    • @galaxies_dev
      @galaxies_dev  Месяц назад

      Expo Go is just a g environment, it shouldn't be a reason to ignore great libraries like Zustand!

  • @eltondeveloper1159
    @eltondeveloper1159 9 месяцев назад

    Hi Guy. Is it possble you create a todo with zustand and express REST API. In RUclips I not found this tutorial anyway. Thanks!

    • @galaxies_dev
      @galaxies_dev  9 месяцев назад

      Sure, might be a cool tutorial indeed!

  • @SubhranshuChoudhury
    @SubhranshuChoudhury 6 месяцев назад

    Thanks, it really helped :)

  • @michael_ibeh
    @michael_ibeh 9 месяцев назад

    started a new react native project, Async storage is slow so I decided to switch to react-native-mmkv, it doesn't work with expo go so I changed the project to a development build and did 'expo prebuild" like the react-native-mmkv doc said, I installed the development build version on my mobile phone and ever since then, my app wont work at all, it keeps throwing this error
    invariant violation: "main" has not been registered. this can happen if: * metro (the local dev server) is run from the wrong folder. check if metro is running, stop it and restart it in the current project. * a module failed to load due to an error and appregistry.registercomponent wasn't called., js engine: hermes
    I have done expo prebuild --clean, deleted and reinstalled my node modules, created and development build, updated my packages, started another project, they all don't seem to work, as long as react-native-mmkv is there, it doesn't work.
    please I need a fix for this, I've google searched everywhere, nothing.

    • @galaxies_dev
      @galaxies_dev  9 месяцев назад

      You also need to run the dev server locally after installing the app, or simply run "npx expo run:ios" to have it all in one!

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

    I having a problem with zustand. After the state is changed, it doesn't re-render the component. Does anyone have the experience in this issue?

  • @LeonardoSilva-yj9lg
    @LeonardoSilva-yj9lg Год назад

    Por que não incluir mmkv nos pacotes expo ?

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

    Do you prefer Zustand over Recoil?

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

    how did you achieve this "@/XXXX/XXX" alia path without "babel-plugin-module-resolver" package, I fllow the video, the setting doesn't work🤔

    • @call_me_rusker
      @call_me_rusker Год назад +2

      never mind, I change the"./*" to "src/*", it works

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

    sometimes it sounds like chustand, others it sounds like zuustand, maybe spelling it phonetically would help me

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

      I guess it would be like "tsushtand" :D

  • @_crista
    @_crista Месяц назад

    i love ur weird lul style of making things work my sub to u

  • @ChrisPrakoso
    @ChrisPrakoso 8 месяцев назад +1

    Timecode where Simon started with Zustand: ruclips.net/video/ypCcLxqX314/видео.html

  • @emirhanpakyardm9142
    @emirhanpakyardm9142 8 месяцев назад

    I don't know why but MMKV doesn't support Expo Go. So I can't use it

    • @galaxies_dev
      @galaxies_dev  8 месяцев назад

      Why are you bound to Expo Go? That's limiting yourself!

    • @emirhanpakyardm9142
      @emirhanpakyardm9142 8 месяцев назад

      @@galaxies_dev i like seeing the app through my phone, also emulators tires my pc

  • @tejasbhatt1820
    @tejasbhatt1820 Год назад +1

    In one video you said yo don't like react native and flutter then why now?

    • @galaxies_dev
      @galaxies_dev  Год назад +5

      Because I changed my opinion about things :)

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

    “ Weekly videos coming every week” 😂

  • @arupde6320
    @arupde6320 7 месяцев назад

    github link ??

  • @waynedunkley
    @waynedunkley 2 месяца назад

    Spoiler alert: 6 minutes towards the end, he gives up trying to set up debugging. Without debugging, Zustand is useless with React Native. A heads up, I've spent an entire day trying to get debugging working with Expo and Zustand and have failed.

    • @fata__morgana
      @fata__morgana Месяц назад

      Why not just debug with console.log(). Lmao

  • @greendsnow
    @greendsnow 6 месяцев назад +3

    Mmkv is Chinese made... So the encryption is probably broken 😂

  • @mythologypedia-z8q
    @mythologypedia-z8q Год назад

    If your intention is to help the others. Make them learn, then u should F***ING provide code link repo, or else there is no point. Thank you.

    • @galaxies_dev
      @galaxies_dev  Год назад +1

      Thanks for the feedback! I'll try to create a repo after the stream in the future.
      However, I don't think that simply copy and paste from a repository will help you to "learn" a topic.

    • @Higurashi029
      @Higurashi029 Год назад +3

      no one responsible if you learn or not. if he does provide a code repo then thank him but if he doesn't still doesn't change the fact he's doing this for free...i don't believe on copy paste if your intention really to learn.

    • @bugraotken
      @bugraotken 9 месяцев назад +1

      If he (tutor) is creating the whole project with you, there is no point on sharing the code with you. If you want to add a repo to your portfolio like pretending you have completed the video with him, go and complete the video with him, otherwise sit and cry man.

    • @readywhen
      @readywhen 4 месяца назад +1

      @@bugraotken Meh I disagree, I've moved away from watching tutorials and jump right into the source code. Skim through, look for the few things I actually need for example, grab the docs alongside the code base to get to understand things fast, then start to replicate if it's what I need. But maybe this approach works because I'm now finally not so much of a beginner anymore 😄