Zustand in NextJS with persistant storage

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

КОМЕНТАРІ • 71

  • @MittuRohith
    @MittuRohith 2 місяці тому +3

    Looking forward for the next video
    Zustand Part Start : 15:22

  • @clevercoderjoy
    @clevercoderjoy 6 днів тому

    pretty good so far
    now i will be learning zustand

  • @chriscastle-g8f
    @chriscastle-g8f Місяць тому

    Firstly really appreciate your videos there a massive help thank you!
    Regarding the index issues the code was all correct and worked when I we debugging I had to put a wait in recommend making all the attributes and relation ships then adding indexes at the end

  • @kunalsharma-kg6sk
    @kunalsharma-kg6sk 4 місяці тому +2

    Zustand Part Start : 15:22
    Imports Part : 22:10
    interface part : 24:28
    Zustand Store Part : 29:48

  • @afshinator
    @afshinator 7 днів тому

    Mid-november, I am also encountering the error you show when creating the content attribute, and also when trying to create the content index. But luckily (?) the content attribute *was* created; and the web interface allowed me to create the second index as you show.

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

    Looking forward for the next video

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

    Looking forward for the next

  • @imkir4n
    @imkir4n 4 місяці тому

    Indeed, perfect video at the perfect time. W hitesh

  • @jalluchakri1528
    @jalluchakri1528 4 місяці тому

    Hey ! Hitesh For me it is worked for creation of indexes nicely and both indexes are created nicely

  • @codewithcode2864
    @codewithcode2864 4 місяці тому

    Looking forward for the next video!!

  • @shivanand0297
    @shivanand0297 3 місяці тому +1

    for indexing
    await Promise.all([
    databases.createIndex(db, questionCollection, "title", IndexType.Fulltext, ["title"], ["ASC"]),
    databases.createIndex(db, questionCollection, "content", IndexType.Fulltext, ["content"], ["ASC"]),
    ]);
    make sure to pass ["ASC"] in capital letters only this will work fine

  • @ampagetech2624
    @ampagetech2624 4 місяці тому

    Thanks keep on we are following in this interesting project tutorial

  • @rohitt.sirsat
    @rohitt.sirsat 4 місяці тому

    Looking forward for the next video

  • @kirankatti3975
    @kirankatti3975 4 місяці тому

    looking forward to the next video ❤❤

  • @yogsgehlotmusic
    @yogsgehlotmusic 4 місяці тому

    The first time, Sir, you got a little bit angry with the red squiggly lines..............
    Like the way you debug ❤❤

  • @deepeshji
    @deepeshji 4 місяці тому

    looking forward to the next video

  • @MudasirAbbas007
    @MudasirAbbas007 4 місяці тому

    Looking forward to next video sir

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

    Well I m new to Zustand and I hope I grab it from here

  • @TusharBansal-v8
    @TusharBansal-v8 4 місяці тому

    Today's video was a bit overwhelming, need to watch it again after 15:22

  • @shivanand0297
    @shivanand0297 4 місяці тому +1

    i'm completing all the videos as they publish

  • @MukeshKumar-nn4nq
    @MukeshKumar-nn4nq 4 місяці тому

    Zustand is new to me , itna smj nhi aaya par sun kar acha lga, just kidding , let try out zustand.

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

    great video zustand is indeed a fun lib easy than redux ofc😁

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

    Completed and understood

  • @deepanshubhagat5694
    @deepanshubhagat5694 3 місяці тому +1

    Hi sir, there is a mistake at 6:05, the middleware will only run for routes/paths for which it matches path in matcher config.
    For e.g.: if matcher: ['/dashboard'], if matcher only contain 'dashboard' then the middleware will only run for 'dashboard" request path not for any other path.
    For your case the REGEX has a negative lookahead which will match all path except api and static files and run for all paths except api and static files.

  • @shashidharaudupa4363
    @shashidharaudupa4363 4 місяці тому

    Looking forward for the nexr video

  • @eleah2665
    @eleah2665 4 місяці тому

    Love Zustand.

  • @Pranaykumar-14
    @Pranaykumar-14 4 місяці тому

    Thanks a lot sir ❤

  • @Akanesp
    @Akanesp Місяць тому +1

    Really looking for more stuff

  • @Rajatcode
    @Rajatcode 4 місяці тому

    Comment done awesome vids on chai aur code

  • @ManishRajoriya0
    @ManishRajoriya0 4 місяці тому +3

    00:02 Introduction to Zustand state management library
    01:50 Naming convention for storage setup
    05:43 Configuration of path matching in NextJS middleware
    08:00 Chad GPT provides detailed path information for API endpoints.
    12:09 Troubleshooting attribute creation issue
    14:27 Zustand is a simple and straightforward State Management library for NextJS and React.
    18:05 Zustand enables persistent data storage
    19:50 Creating a Zustand store with persistant storage
    23:26 Creating user reputation and preferences
    25:21 Creating a generic type 'user' with optional user preferences
    28:58 Creating Zustand store and interface definition
    30:48 Working with persist method and immer
    34:31 Use setter method to avoid mutating state
    36:15 NextJS hydrated method simplifies state management
    40:19 Implementing session and JWT in NextJS
    42:26 Setting reputation for non-existent user
    46:38 Creating accounts and handling encryption smoothly
    48:45 Deleting session and resetting values for logout

    • @dhumalamarnath7558
      @dhumalamarnath7558 4 місяці тому

      hey can you please tell me in which directory npm run dev shall be ran, as im not getting console.logs

  • @asararahmed7892
    @asararahmed7892 15 днів тому

    Looking forward to complete the playlist ....10 nov 2024

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

    15:20 Zustand starting

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

    I see yur Nginx upcoming tutorial please can you add video about django and docker with Nginx deployment no one make videos about this topic
    Looking forward for the next video!!

  • @Yoruken-p1n
    @Yoruken-p1n 4 місяці тому +1

    13:40 in promise if we first take content the index is created done

  • @PulkitPorwal-v7y
    @PulkitPorwal-v7y 4 місяці тому

    15:24 From here the Zustand Part is started

  • @not_amanullah
    @not_amanullah 4 місяці тому

    Thanks ❤️

  • @mudassirakhter6605
    @mudassirakhter6605 4 місяці тому

    15 : 21 zustand started

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

    15:00 Zustand

  • @kunalsharma-kg6sk
    @kunalsharma-kg6sk 4 місяці тому

    thanks

  • @deadlylive_gaming7154
    @deadlylive_gaming7154 4 місяці тому

    Comment before premiere of video

  • @deadlylive_gaming7154
    @deadlylive_gaming7154 4 місяці тому

    15:20 dbSetup done Zustand setup started

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

    matcher allows you to filter Middleware to run on specific paths. It is written in the docs ?

  • @geetambinani3917
    @geetambinani3917 4 місяці тому

    15:21 this is the zustand starting part

  • @arijitdn
    @arijitdn 4 місяці тому

    15:20 Zustand

  • @damn-yg1gm
    @damn-yg1gm 4 місяці тому

    tq

  • @hasiiabbasi
    @hasiiabbasi 4 місяці тому

  • @venongaming9850
    @venongaming9850 4 місяці тому

    Looking for next video

  • @suhailpathan338
    @suhailpathan338 4 місяці тому

    ❤❤❤❤

  • @supreme_boy
    @supreme_boy 4 місяці тому

    👍

  • @deadlylive_gaming7154
    @deadlylive_gaming7154 4 місяці тому

    21:25 note the todos

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

    Can you do a zustan video

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

    How We Achieve Server Rendering while Using State Persistence

  • @kyriakosfaidonos9618
    @kyriakosfaidonos9618 4 місяці тому

    Hey Hitesh! Copilot or Supermaven ?

  • @saksham_1612
    @saksham_1612 4 місяці тому

    Next up ?

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

    pew pew

  • @tech_hiest0752
    @tech_hiest0752 4 місяці тому

    Sir, u r too fast to catch. Please little bit slow. 28:20

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

    15:13

  • @CodeDaily365Days
    @CodeDaily365Days 28 днів тому

    My comment to complete the comment target

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

    31/07

  • @fadodundamilare4392
    @fadodundamilare4392 4 місяці тому

    @Hitesh am I the only one expericing this error when trying to spin up the application :
    Error creating storage: [AppwriteException: User (role: guests) missing scope (buckets.write)] {
    name: 'AppwriteException',
    code: 401,
    type: 'general_unauthorized_scope',
    response: {
    message: 'User (role: guests) missing scope (buckets.write)',
    code: 401,
    type: 'general_unauthorized_scope',
    version: '1.5.8'
    }

  • @infinitetsukuyomi1038
    @infinitetsukuyomi1038 4 місяці тому

    Looking forward for the next video

  • @RahulKumar-hj8qk
    @RahulKumar-hj8qk 3 місяці тому

    looking forward for next video

  • @KshitijJungShahi-dg7dk
    @KshitijJungShahi-dg7dk 4 місяці тому

    looking forward to next video

  • @praveend5492
    @praveend5492 4 місяці тому

    Thanks ❤

  • @kajalmukherjee3944
    @kajalmukherjee3944 4 місяці тому

    Looking for the next video

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

    Looking forward for the next video

  • @PraveenLodhi-mz5qj
    @PraveenLodhi-mz5qj 3 місяці тому

    looking forward to next video

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

    Looking forward to next video