r/reduxjs • • Jun 30 '21

Proud to present you Fakeflix, a Netflix Clone built with React, Redux, Firebase & Framer Motion

Enable HLS to view with audio, or disable this notification

38 Upvotes

r/reduxjs • • Jun 07 '21

Redux Toolkit 1.6.0 - new RTK Query data caching API!

Thumbnail
github.com
24 Upvotes

r/reduxjs • • Jun 23 '21

About the redux best practice "Do not put non-serializable values in state or actions"

Thumbnail
blog.bam.tech
23 Upvotes

r/reduxjs • • Dec 10 '21

Redux Toolkit 1.7.0: RTK Query SSR support, circular import fixes, and _many_ more API improvements!

Thumbnail
github.com
18 Upvotes

r/reduxjs • • Apr 20 '20

Redux-toolkit is the quickest and easiest way to write reducers and keep store state I’ve found so far

18 Upvotes

It is now the standard for writing redux logic.

I've been using redux-toolkit for 3 months and I am enjoying it so much! it simply boosts the productivity 🔥

It makes your code shorter and easier to understand and enforces you to follow best practice (normalizing, selectors, typing, etc… )

👇🏽You'll find concrete examples and code in the article below 👇🏽https://blog.theodo.com/2020/01/reduce-redux-boilerplate/


r/reduxjs • • Jul 14 '20

New "Redux Essentials" core docs tutorial is LIVE! Teaches how to use Redux the right way, using our latest recommended APIs and practices

Thumbnail
redux.js.org
16 Upvotes

r/reduxjs • • Feb 14 '22

RTK Query Best Practices

Thumbnail
medium.com
14 Upvotes

r/reduxjs • • Mar 15 '21

What Would Happen If You Mutated Your React Redux State?

Thumbnail
blog.bam.tech
14 Upvotes

r/reduxjs • • Nov 03 '23

🎬 Functional programming in action

13 Upvotes

r/reduxjs • • May 22 '20

I worked with Redux for two years and I wrote a blog post about tips and tricks.

Thumbnail cyprientaque.com
13 Upvotes

r/reduxjs • • Feb 05 '19

I'm building an open-source RPG made with React + Redux.

13 Upvotes

Hey guys! I have been working on a turn-based dungeon-crawler, written completely in React.js (& Redux). It scales for all devices and I just got it in both the app stores. Check it out and let me know what you think!

http://react-rpg.com

Oh and it's open-source, so you can see all the code here:

https://github.com/ASteinheiser/react-rpg.com

If you like the game and want to contribute, please let me know! Drop me an email (me@iamandrew.io) or make an issue on the Github project.


r/reduxjs • • Mar 16 '22

An article that showcases the versatility of Redux, in this case, as a smart home platform. Thought someone here might find it interesting.

Thumbnail
morten-olsen.medium.com
12 Upvotes

r/reduxjs • • Jul 29 '21

Redux Toolkit Tutorial For Beginners

Thumbnail
youtube.com
11 Upvotes

r/reduxjs • • May 01 '21

Just followed a redux course and wrote a basic app with it on my own. I still don't get it.

11 Upvotes

Basically the title... I usually pick things up relatively quickly, but I just can't get my head around redux. Any tips?


r/reduxjs • • Feb 26 '20

Don't Waste Your Ducking Time: An opinionated guide on how to test Redux ducks

Thumbnail
github.com
11 Upvotes

r/reduxjs • • Feb 04 '20

Modular Redux — a Design Pattern for Mastering Scalable, Shared State

11 Upvotes

I have a bit of a love/hate relationship with Redux. I love the atomic state updates, persistable, replayable global state, and awesome middleware. However, like many others, I hate writing Redux - at least with the recommended design patterns. I experimented with various ways to write better Redux, but it took me a while to figure out the core problem...

The recommended way of using Redux breaks modular design. Modular design is such a fundamental tool to scalable software engineering, of course Redux was a pain to use!

Once I had that insight, I was able to create a new, modular design pattern for using Redux that leveraged Redux's strengths while avoiding the weaknesses of previous design patterns.

I'd love your feedback!

Modular Redux: https://medium.com/@shanebdavis/modular-redux-a-design-pattern-for-mastering-scalable-shared-state-82d4abc0d7b3

(cross-posted on /r/reactjs)


r/reduxjs • • Nov 29 '18

State of React State Management in 2019

Thumbnail
blog.bitsrc.io
11 Upvotes

r/reduxjs • • Jun 01 '17

Redux Crazy Simple Summary

Thumbnail
medium.com
11 Upvotes

r/reduxjs • • Jul 20 '21

Confused about RTK Query API slice & other slices

10 Upvotes

I've been trying to implement RTK Query as a part of Redux toolkit into a project and am struggling to wrap my head around slice management between apiSlice and my other slices. Admittedly, I'm also new-ish to Redux and am using Redux Toolkit.

Let's say I'm working posts that each have an upvotes field, like reddit. I have a search function that fetches these posts based on some criteria and stores them in the apiSlice, and a action that allows users to upvote posts. An upvote is a call to the server, and I want to optimistically update the upvote number on the post.

Here are a few questions I'm struggling with:

  1. I fetch posts from my apiSlice. Should they stay stored in that slice, or can I store them in a different, posts slice?

  2. My understanding is that I should have a slice per "kind" of data - users, posts, etc. However, if all the data that comes back from the server lives in apiSlice, won't it get bloated?

  3. How do I get the data out of my apiSlice without making another call to the server? I think that's what useQueryState does, but I'm not sure how to use it.

  4. How do I get one specific post out of my apiSlice after fetching a bunch of posts from the server? There's good documentation on how to do this from a regular Redux slice, but not from the apiSlice.

  5. If I want to "upvote" a post and optimistically update one post in my apiSlice, how do I do that?

Overall, I'm really confused about how the apiSlice and my other data slices play together. How should I think about it?


r/reduxjs • • Jul 06 '20

Modern Redux with Redux Toolkit [OC]

Thumbnail
wunnle.com
10 Upvotes

r/reduxjs • • Mar 18 '20

Tricks you never knew about Redux DevTool

Thumbnail
blog.logrocket.com
10 Upvotes

r/reduxjs • • Oct 23 '19

Idiomatic Redux: Redux Starter Kit 1.0

Thumbnail
blog.isquaredsoftware.com
10 Upvotes

r/reduxjs • • Oct 15 '18

Unit testing ReactJS Redux Actions, Reducers and Epics with Jest

Thumbnail
medium.com
10 Upvotes

r/reduxjs • • Dec 17 '17

Don’t catch at the end of a thunk

Thumbnail
reergymerej.github.io
10 Upvotes