React Native State Management: Zustand + MMKV = 🔥

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

КОМЕНТАРІ • 47

  • @Mohannadhamdy
    @Mohannadhamdy 9 місяців тому +5

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

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

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

  • @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.

  • @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.

  • @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!

  • @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

  • @DarkMefisto1991
    @DarkMefisto1991 19 днів тому

    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

  • @eltondeveloper1159
    @eltondeveloper1159 9 місяців тому

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

    • @galaxies_dev
      @galaxies_dev  9 місяців тому

      Sure, might be a cool tutorial indeed!

  • @mishen-thakshana
    @mishen-thakshana 10 місяців тому

    Thanks for this. Will you be coming live soon?

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

    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  8 місяців тому

      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!

  • @LeonardoSilva-yj9lg
    @LeonardoSilva-yj9lg Рік тому

    Por que não incluir mmkv nos pacotes expo ?

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

    Thanks, it really helped :)

  • @hewr_srood
    @hewr_srood 10 місяців тому

    Do you prefer Zustand over Recoil?

  • @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?

  • @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

  • @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

  • @_crista
    @_crista Місяць тому

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

  • @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

  • @ChrisPrakoso
    @ChrisPrakoso 8 місяців тому +1

    Timecode where Simon started with Zustand: ua-cam.com/video/ypCcLxqX314/v-deo.html

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

    “ Weekly videos coming every week” 😂

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

    github link ??

  • @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

  • @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 :)

  • @waynedunkley
    @waynedunkley Місяць тому

    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 5 місяців тому +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 😄