Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. React
  4. Zustand State Manager - real-world examples

Zustand State Manager - real-world examples

Scheduled Pinned Locked Moved React
5 Posts 2 Posters 95 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • realJSOPR Offline
    realJSOPR Offline
    realJSOP
    wrote last edited by
    #1

    I've watched a couple of videos, but they are very simple examples whose most complicated sample is incrementing/decrementing a counter. Dose anyone have a real-world use case taht can comment on it's functionality?

    Graeme_GrantG 1 Reply Last reply
    0
    • realJSOPR realJSOP

      I've watched a couple of videos, but they are very simple examples whose most complicated sample is incrementing/decrementing a counter. Dose anyone have a real-world use case taht can comment on it's functionality?

      Graeme_GrantG Offline
      Graeme_GrantG Offline
      Graeme_Grant
      wrote last edited by
      #2

      @realJSOP said in Zustand State Manager - real-world examples:

      I've watched a couple of videos, but they are very simple examples whose most complicated sample is incrementing/decrementing a counter. Dose anyone have a real-world use case taht can comment on it's functionality?

      Sure. How about the openai-responses-starter-app from OpenAI? Here is one example: useConversationStore.ts

      realJSOPR 1 Reply Last reply
      0
      • Graeme_GrantG Graeme_Grant

        @realJSOP said in Zustand State Manager - real-world examples:

        I've watched a couple of videos, but they are very simple examples whose most complicated sample is incrementing/decrementing a counter. Dose anyone have a real-world use case taht can comment on it's functionality?

        Sure. How about the openai-responses-starter-app from OpenAI? Here is one example: useConversationStore.ts

        realJSOPR Offline
        realJSOPR Offline
        realJSOP
        wrote last edited by
        #3

        @Graeme_Grant said in Zustand State Manager - real-world examples:

        @realJSOP said in Zustand State Manager - real-world examples:

        I've watched a couple of videos, but they are very simple examples whose most complicated sample is incrementing/decrementing a counter. Dose anyone have a real-world use case that can comment on it's functionality?

        Sure. How about the openai-responses-starter-app from OpenAI? Here is one example: useConversationStore.ts

        I'm old - I don't use AI to write code.

        Graeme_GrantG 1 Reply Last reply
        0
        • realJSOPR realJSOP

          @Graeme_Grant said in Zustand State Manager - real-world examples:

          @realJSOP said in Zustand State Manager - real-world examples:

          I've watched a couple of videos, but they are very simple examples whose most complicated sample is incrementing/decrementing a counter. Dose anyone have a real-world use case that can comment on it's functionality?

          Sure. How about the openai-responses-starter-app from OpenAI? Here is one example: useConversationStore.ts

          I'm old - I don't use AI to write code.

          Graeme_GrantG Offline
          Graeme_GrantG Offline
          Graeme_Grant
          wrote last edited by
          #4

          @realJSOP said in Zustand State Manager - real-world examples:

          I'm old - I don't use AI to write code.

          You miss the point that I was making. It's not about the AI, it's a real-life example of how it can be used.

          1 Reply Last reply
          0
          • realJSOPR Offline
            realJSOPR Offline
            realJSOP
            wrote last edited by
            #5

            I've tried watching a dozen or so videos, and none of them go any further than the basic examples provided by zustand. I'm trying to understand the slices pattern because it allows different stores to share data, but I can't find anything that actually explains it.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups