Should you still be using Redux in 2023?

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

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

  • @wlockuz4467
    @wlockuz4467 Год назад +80

    You forgot to talk about Redux Toolkit Query / RTK Query.
    Its a data fetching and caching library that works seamlessly with Redux toolkit. Its basically Redux's answer to React Query. Super useful if you don't want to break out of Redux's patterns while also not having to worry about doing the heavy lifting of caching your own data.

    • @mattpocockuk
      @mattpocockuk  Год назад +31

      I had a section on this but deleted it for brevity! Let me fill in here:
      react-query has solved a lot of the problems people _used_ to think of as state management - managing the results of fetching data and updating it. A lot of apps that used to use Redux for their 'server state' switched over to react-query. I think this is a good change - using the right abstraction is usually better. And react-query is now Redux's only real competition on npmtrends - around 3m downloads/week.
      The fact that redux itself has a first-class abstraction for data fetching is superb, and massively benefits those that use Redux toolkit.

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

      My _only_ gripe having used RTK Query, is that it's very hard to split out things into their own domains/packages without loosing type safety. The issue is really that if you rely on things like cache invalidation and optimistic updates, you have to manually add types to everything.
      It has the same issues tRPC had before v10 where splitting things out could break the type inference. I am not sure of a way to improve this, though, because that is the tradeoff you have to deal with when you're using a tightly integrated that relies on passing types throughout.

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

      Is there a case to be made for using react-query for caching data from a database to improve load times / optimistic ui, but redux toolkit for ui state? Or does that feel like too much and I should focus my educational efforts on RTK Query if I already know I'm going to use redux? Thanks!

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

      @@mattpocockuk For sure, react-query is love. For new projects react-query is my goto for fetching/caching and redux for monolithic local state management (if any)
      My point of mentioning RTKQ was to highlight the fact that Redux maintainers still care about their ecosystem and its refreshing to see 😄

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

      ​@@TeaganAtwater You can, but you gain so much more from just using RTK Query if you already use RTK. In the end it just provides a middleware to connect the state with your store. You could write one for React Query as well, but it wouldn't benefit you much.

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

    One of the best videos on web dev that talk about a technology: to the point, clear, and explains the why and the hows to someone who is new to the topic. Amazing!

  • @YTCrazytieguy
    @YTCrazytieguy Год назад +24

    Many times you want the state on the server, which makes react-query a better solution. In your user example the leaf components would send a mutation to the server, and the updates would be handled by react-query's caching mechanisms.
    But looks cool :)

    • @karim6514
      @karim6514 Год назад +4

      Redux is great, but the learning curve is steep and also react-query took most of the work out of it, so you would mostly need redux in a place like having cart items locally. Still having that amount of code for such thing, I'd go for zustand or jotail unless the whole codebase uses redux.

    • @sokacsavok
      @sokacsavok 11 месяцев назад

      @@karim6514 You didn't watch the video, did ya?

  • @ChillAutos
    @ChillAutos Год назад +8

    Zustand all the way baby. Gotta go fast!

  • @havokgames8297
    @havokgames8297 Год назад +4

    Wow. I wasn't aware that Redux had resolved so much. I was firmly stuck in seeing it implemented in a project around 2017 or so I think. It seemed incredibly boilerplatey as you say, and complex. I will look back into it again.

  • @YOitsBA
    @YOitsBA Год назад +19

    I'm using Redux Toolkit in my React Native app, it was a bit clunky to get set up and used to but I'm happy with it and it's modularity so far.

    • @mma-dost
      @mma-dost Год назад

      Hey, I want to say that it will be difficult in starting but keep learning it and make project with it and slowly and slowly you will be comfortable with it. All the best.

  • @ColinRichardson
    @ColinRichardson Год назад +8

    Sounds like modern React's-redux and Vue's-Pinia are pretty much drinking from the same special sauce..

  • @guiiimkt
    @guiiimkt Год назад +14

    Is Redux still relevant in 2023?
    No. Unless you have a huge app with a lot of client side state like a video editor app, ui design app like figma, etc.
    In 2023 and beyond just use React Query for all your async server state and React Context or Zustand for the little global state that is left.
    Redux should be only be considered on VERY specific cases.

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

    I feel like people who vehemently hate on redux at every opportunity only used the old crap syntax (with mapStateToProps and mapDispatchToProps), the new hook solution is much nicer to work with

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

      Hi I was one of these people until just now. I tried getting into redux in 2018 and I got spooked. Never went back, and never thought I would ever need to look into it again until I decided to hear what Matt had to say about it

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

      Hi, I *am* one of these people. Maybe I've just been working in some really bad projects or something, but I've never experienced a situation where I was happy to have redux, even after hooks. Every project I've inherited just throws every possible bit of data into redux, and this means that in order to keep things consistent, I must put everything in Redux too, or face the wrath of code review.
      If I need some data in my non-redux application, I can just useState and useEffect to get and store the data. If I need it to stick around after the component is gone, I can use a context.
      In a redux application, I need to make an action to trigger the data to be loaded, an action for when it's successfully loaded, an action for when there was a network error, a saga to load the data, add the data to my redux state, create reducers for the different actions,.

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

    I don't even use any other libraries. 👀 I just use React Context + React Query. And these cover almost everything I've ever had to do in my projects. Would wanna know if this isn't the best practice. Why is context never mentioned when talking about state management? Is it not good or there's something else?

    • @zachary.ramsumair
      @zachary.ramsumair Год назад

      I do the same. Learnt it from Pedro tech

    • @thorw2136
      @thorw2136 10 месяцев назад +1

      I would suggest you to use state management Library over react context.....
      Because context will rerender every child components that uses it whenever value changes . So if you're using context at root level.... You're basically rerendering everything.
      And that's last thing you want in react.

  • @FunctionGermany
    @FunctionGermany Год назад +6

    sure, context doesn't replace redux, but what about context + useReducer?

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

    MobX State Tree is often nicer to use imo.
    But i must say, the way svelte handles this with stores is far less boilerplatey

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

    Thank you so much for this video. That’s true a lot of things are said around redux but your explanations and point of view are very helpful. Great video, as usual!!!

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

    These explanation diagrams look really neat. Which tool is used to create them ?

    • @steffm.4884
      @steffm.4884 Год назад

      Let me know if you found the answer to your question, thanks 😊

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

    Omg, someone said the same things I've been saying this whole time!

  • @maelstrom-qw1jl
    @maelstrom-qw1jl Год назад +4

    Can't wait to go freelance and do everything with vanilla JS. I'm so done with this "here's a library that solves a problem caused by another library imported by this library to fix the inherent issues of library XYZ" mess.

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

    Oh man, this is godsent ❤ we're just about to pick a state management lib for our project. I got fed up about redux some years ago because of all that boilerplate, just like you said. Now I'll give it a go again! Thanks so much

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

      Do consider why you need state management. Are you only going to store cached data and modify that data? The boilerplate of redux is still to big of a con and you should use tanstack-query. You have a lot of shared UI STATE (not server data state). Then redux is good pick.

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

    Rtk query only needs infinite query api to be on par with tanstack swr apollo and everything inbetween

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

    I’m one of the folks who thought of redux was too boilerplate-y. Might be worth a look between the slices, thoughtful conventions, and the dev tools. Will give another look on my next project 🙂

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

    Very good as always. Btw I appreciate your care about content warning at 03:07.

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

    Toolkit's types are a bit tricky sometimes. My issue was with createSlice and trying to add type to actions. I wasn't the one who created that slice and just passing by tried to add some type here and there :)

  • @8koi245
    @8koi245 Год назад

    I went all the way tru the journey, old Redux wasn't happy but was able to survive, fell in love with toolkit, then forgot all once I saw Zustand lol
    (I test in prod heh)

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

    If you mention redux in the reactjs subreddit mark comes out of the nearest bush to tell you about it hahaha. It is such a blessing to have the maintainers so acessible

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

    Matt amazing as always ! I used Redux toolkit, it simplifies state management a lot and it makes the model also clearer, and for me that's one of the most important things when managing state. As for putting all of the state in redux, I don't think it's actually necessary, I would put only the main state, so this forces you to think about how to organize and manage state in your app and that's a necessary thing, if not done would result in difficult to maintain and debug apps.

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

    As always, great video Matt!
    Tools like redux (w or w/o toolkit) allows you to manage a store that only needs to change locally and does not connect to some external resource like an API, for that you will have to use something like react-query or redux toolkit query, right?
    If it's the case, what would be the best stack?
    1. redux toolkit for local state management + RT query for async state
    2. react-query for async and React.context for local
    3. a mix of both

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

      redux-toolkit does contain some tools for handling async state, including a bespoke lib for fetching data like react-query. So the idea is that you could go all-in on redux/redux-toolkit.

  • @kainbryan-jones2729
    @kainbryan-jones2729 10 месяцев назад

    I respect Redux as a library, but my personal preference is plain old React Context + useReducer hook. Maybe it's because I'm so used to it I can whip something up real quick, but also I just find it provides everything I need. React-query also works pretty well for server-side state management.
    I think useReducer is also one of the best hooks in React

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

    Matt, amazing video! Can we still use Redux Toolkit if we build our React app with some other builder different than CRA?

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

      Yes! Redux-toolkit is just JavaScript, so it'll work anywhere JavaScript runs.

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

      @@mattpocockuk Amazing

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

    OG Redux with all the actions, selectors and reducers with massive switch statements make me want to throw up

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

    3:15 thank you so much

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

    Nice video! I also like Redux-Toolkit and appreciate all the efforts that maintainers put into it.
    But some typescript inside Redux-Toolkit is very tricky, especially type for dispatch that can take actions and need to support different kind of middlewares. May be you can make a video about typescript types that are used in Redux-Toolkit?

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

      Hi, I'm one of the Redux maintainers. Can you give an example of a TS / middleware scenario that you're talking about having trouble with?

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

      @@markerikson3383 Hello! I was talking about typings that redux(toolkit) uses itself. Lets take a simple counter-ts example from redux repo and look at the useAppDispatch type:
      function useAppDispatch(): [{} extends {thunk: {extraArgument: infer E}} ? ThunkMiddleware : ThunkMiddleware] extends MiddlewareArray ? ExtractDispatchFromMiddlewareTuple : ([{} extends {thunk: {extraArgument: infer E}} ? ThunkMiddleware : ThunkMiddleware] extends ReadonlyArray ? ExtractDispatchFromMiddlewareTuple : never) & Dispatch
      How can I understand all this? And it looks like even such tricky type does allow to dispatch something like this:
      onClick={() => dispatch({type: 'garbage'})}
      which is not expected by any reducer. So it seems that statically checking actions that are dispatched is not possible.

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

      @@markerikson3383 I wish politicians in my country were as approachable as you. Thank you for your contributions to the Redux library.

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

    Redux is an abstraction that can be avoided by rethinking the architecture of the app. Before it was harder but now with signals I think there is no need for redux. I prefer to use even driven programming instead of redux. Instead of dispatching actions just fire your custom even.

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

    Nice one Matt!

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

    Out-of-date examples and training are ruining the ability to effectively search for technical answers. Even StackOverflow is getting clogged up with answers that were good when originally written but are now flat out wrong. It's great to hear a tech communicator mentioned this exasperating problem.

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

    I like this type of video Matt, thanks

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

    thanks for the content
    it is perfect and we looking forward to see more contents about redux and other libraries

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

    Doesnt the contextApi also makes so all logic from your app can be in one place? Cause you can just add functions to the context itself and so it works basically like redux?

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

    Am I naive for just not needing much client side state in my apps? I have been writing react for 7 years now, and I don't think i've used global state other than a simple Context in nearly 2 years. Maybe this is because Remix handles global state a bit differently. Just let your framework/browser handle all the gnarly state wherever possible. HTTP state? Use your framework (or react query), form state? Use HTML forms and your browser, loading and errors are handled natively. Validation? HTML forms. User authentication , cookies are stateful no?I feel like React develoeprs are on a mission to write as much code as possible sometimes. The best amount of code to write is no code - thats the best lesson i've ever learnt. And its why I haven't picked up Redux or any of its successors in years

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

    The idea that redux was ever boiler-plate heavy wa actually never true for any developer who took a little trouble to reduce it. And I still use the "old" versions.

  • @kirsanov2008
    @kirsanov2008 Год назад +6

    I personally think Redux is just a fancy lib and nothing more. Everything it offers you can implement in 30 lines of code without all those unusual abstractions. I personally think that keeping everything in one global store is bad idea. Also you don't need to use that special state reactivity everywhere in your app, usually it's just ok to pass things down the tree without extra boilerplate and additional files here and there... I played a lot with Redux, but never adopted it in my real projects... usually I build everything around so called "atoms" with straightforward JS functions, code is simple and easy to reason about

    • @torb-no
      @torb-no Год назад +1

      I had a project where it was appropriate to simply have a in-memory store on the server and I just wrote a reducer and a simple store. No framework. It worked great.

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

    Thanks for the video, I'll give have to give redux another go. I have always found it easier to suffer the prop-passing than to get redux set up for my small projects.
    Hey Matt, have you ever written a typescript language server plugin? I recently made a video about my attempt... it was hard to find resources, bit of a niche interest.

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

    I like Redux, but I still don't see why it is needed with Context. It's not too difficult to build out a Redux replica using useContext. You can set it up exactly like the old boilerplate, or create a custom hook and get a more tanstack approach.
    are there things that Redux dos that usecontext doesnt?

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

    I haven't used redux toolkit, but regarding the store, what prevents me from creating one similar to redux using only Context?

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

      Nothing! As mentioned in the video.

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

      I mean, you mention that the real advantages of redux are having a single place/store, testable, clean, with action pattern, but I feel like you can easily reproduce this with Context

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

      ​@@raphaelqueiroz3105 Be careful of the performance implications of rerendering with context.
      There are ways to make it more performant by using a pub/sub pattern to allow your components to subscribe to only a piece of the state, and not update when the rest of the context updates.
      It's not hard, but just something to keep in mind, since context can lead to performance issues if used without consideration.

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

    What's a good, up to date rtk query course with a meaningful app, larger than a to-do example?

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

    That's the exact video that I have been looking for about the new redux!
    i have been using redux 3 years ago and everyone was saying it was bad and not needed most of the time and they were right kinda, I then stopped coding as it's not my main field and when I came back this year I was confused why is redux everywhere now ? and what is redux toolkit, is redux very popular now ?
    Thanks for the clarification

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

    what you think about Mobx?

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

    Redux is still relevant in 2023 but not how people are thinking about it. Redux toolkit is a lot better then the legacy. But with react query which is far better for web and react native, zustand is great for module federation and light wait stores. But where redux will out live all of these kids is in the desktop kind of apps. ENTER Tauri. Thanks for keeping the lights on.

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

    I neverknow react, but I use redux pattern as my state management choice (ngrx) in angular, iand i like it very much, the nowadays syntax has already much shorter than the older but under the hood still using the pattern, only less boilerplate.

  • @MyGeorge1964
    @MyGeorge1964 3 месяца назад

    What about @legend/state 3.0.0-alpha w/ observables to boot? Looks way better than Redux!

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

    It wasn't so clear to me how the Context API can't replace rtk. In your example I see it being to achieve the same thing. Can someone elaborate on how it doesn't replace rtk.
    Btw I've been using rtk since it came out and I enjoy it.

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

    What do you think of coding your own store in typescript from scratch, which you can subscribe to changes with callback functions or send changes

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

      If you opt into Redux, you get a lot of support you wouldn't get from a hand-rolled framework, especially on the docs side.

  • @JamesGray-yt6wb
    @JamesGray-yt6wb Год назад

    May we have a rtk-query with typescript tutorial?

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

    With the popularity of other external state management libraries such react Query, which needs no boiler plate what so ever and is being adopted by other technologies such as trpc I still prefer Redux toolkit and Redux toolkit query because it allows to manage both internal and external states but I don't if my reasons are valid.

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

    Unfortunately I couldn't see most of the video because my eyes exploded at 3:09, jk I actually like light mode.
    I think Redux is amazing. I like using it even for very simple projects where I don't need complex state management and much tree traversing. The thing with React is that managing any state that's not local or goes deeper than 1 component is just messy and not fun to work with - yes, even with hooks. Redux does require some setup if you just want to start using it, and that's gotten some criticisms (or rather it's simply acknowledged as one of its downsides), but even that process has been improved, and most importantly once you do set it up the state management just becomes much more streamlined and the developer UX improves along with it. Redux DevTools is pretty cool too and doesn't force you to look at bright things like Matt does.

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

    You start by explaining that Redux primary purpose is to avoid prop drilling, then you say that it's not its main purpose somehow? The values in your store change when you dispatch pre-defined actions. Ok, how is this different from useContext/useReducer exactly? Single place where all the logic lives? I don't think so. The components will still have the bulk of the application logic and they will interact with the store when(if) needed.
    I used Redux a lot prior to hooks coming out, and while I wasn't saying "redux is dead" I certainly haven't used it once since useContext/useReducer became available.

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

    Can you make a complete typescript course? A beginner to advanced course....

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

      Yes! totaltypescript.com has a free beginners course, and a huge industry-level advanced course.

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

    Great video and a great guy

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

    Dave Gray's course on RUclips on Redux Toolkit/ RTK Query is the best source for learning latest Redux in react. Promote him if you want the beginners to learn it in modern way.

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

    wait, isn't it what svelte stores do natively ?

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

    Just use jotai and make everything atomic

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

    Really would love you to compare with mobx

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

    So yes, but also no, unless it's already being used, then yes?

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

      If it's there, yes.
      If it's not there, maybe.

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

    The main problem with redux is it's still bloated enough to feel like overkill compared to new gen tooling

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

    Very disappointed to hear that, you should mention downsides too

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

    If "new redux" is such a paradigm shift, then maybe they shouldn't have called it "redux". People already learned what "redux" means. In a way, the maintainers signed up for that burden when they made that choice. Of course, the trade-off is that they have a bazillion weekly downloads to show for their usage statistics.

  • @idiota-w-swiecie
    @idiota-w-swiecie Год назад +1

    Why to me redux seems like a tool that solves problem that should't even exist. Is redux just a disquised singleton?

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

    Why are they complicating frontend just to show off?

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

    I haven't touched redux since 2019. And yes, my dislike for redux comes from that era. The modern redux syntax looks a lot like zustand

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

    As a VueX user, I feel left out and all lonely. 😢

  • @МаксШинкаренко-з1ъ

    No, market effector more... This marketing of this tool is so... so hyped

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

    talk more about redux :)

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

    What about useSignals? If you use signals, Does it not solve the problem of state management?

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

      I don't consider signals to be state management - they help solve the prop drilling problem in a different way to explicit subscriptions.
      As I say in the video, state management is all about centralizing the logic for how your app changes, not solving prop drilling.

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

    👍

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

    Global state is a mistake. When anything can change anything from anywhere.. It's like going back to global variables. So hard to understand and debug. React context is a much more elegant solution for the few things that actually need to be shared.

  • @unimatrixzero7745
    @unimatrixzero7745 3 месяца назад

    Redux was never bad for me. Where things fall over is the implementation. Redux gets put down because devs do a bad job of doing redux properly and devs are lazy.

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

    Redux is really confusing for me, I’m still learning to useState and not worrying about prop-drilling haha

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

    I prefer the older style of redux because redux toolkit is too much of an abstraction imo. In the old style, the reducer logic is all laid out plain as day, and the boilerplate necessary to set it up is what makes it so dependable, customizable, and debuggable.

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

    I always face issues to test components that has children using Redux =/

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

    Zustand can do async and be configured to use redux dev tools. Theres no reason to use redux anymore.
    Redux-slice is even worse in terms of boilerplate than the OG

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

    nice

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

    Redux is the most unclear and overcomlicated manager. Just trash can of code. I'm so happy since I stopped using it. There are a lot of better and much better managers, that it is time to forget it as nightmare

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

    zustand is just better in every way

  • @ginger-viking
    @ginger-viking Год назад

    Chucking everything in one place to avoid using your brain isn't a good reason to use Redux.
    Global state should be for state that actually needs to be global.

  • @j.m.manhard
    @j.m.manhard Год назад

    Maybe a weird question, but what tool are you using to draw those graphs and what font are you using? I really like both of them :) ​@Matt Pocock

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

    why would anyone use anything other than Jotai, if he cares about performance or nanostores if he wants the simplest and most flexibility!!? stop shooting yourselves in the foot

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

    zustand

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

    "Should you still be using Redux in 2023?" - no. For goodness ssake, no. There are significantly better alternatives. Context. Zustand. More. There's only one reason to use Redux, you need to know it to work on old stuff.

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

    nice to pay respect to the OG-s
    it works, maintainers are great, it's just boring for me :P

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

    If you can't stand redux or you fail to see its value and how similar RTK and Zustand are, you need to revisit the Design Patterns books.

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

    No. Redux encourages bad design practices. "Just throw it in the store" NO!

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

    No, due to its terrible async support.

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

    reduce toolkit makes redux so ez that no need for replace

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

    I've been writing Vue for a long time. I have had a good React experience lately. I think redux is one of the worst tools in the ecosystem. Vuex is over, it's Pinia now. The time is coming for redux (for React applications). Zustand or jotai may win the fight.

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

    Mobx is way better than redux but nobody talks about it for some reason.

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

    no

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

    RIP redux. Glad its finally "fallen out of the conversation" - for good reason. what a POS

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

    The pronunciation of Zustand way WAY of haha...

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

    All of these problems can be solved by using svelte XD

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

    Highly disagree. Redux is pointless in a React application. Context solves all the problems Redux does without adding anything unnecessary. You can put whatever you want inside Context. You implied in your comparison that Context is for avoiding prop drilling but there's nothing stopping you from putting all the state management logic into Context. You could even put everything in a single Context and now you have Redux without Redux.
    People pulling in pointless dependencies instead of just learning the APIs they already have access to drives me insane.

    • @zayne-sarutobi
      @zayne-sarutobi Год назад

      Context has a lot of perf issues that you should know assuming you actually took the study its internals
      Tools like Zustand solve that problem, and yeah, it's a breath of fresh air compared to Redux boilerplatekit
      Tbh if I never encountered those inherent perf issues with context, my rant would definitely have been similar to your

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

    Redux is trash

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

    redux > useReducer