Replies: 1 comment 8 replies
-
Hiya. Thanks for posting. I have to say I'm actually a bit confused - what are you suggesting, specifically? Some kind of code change? A documentation change? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello !
I'm new here and this is my first post. The subject I'm going to go through here, I've been thinking about for a long time ago. But first, before I get intro it, I introduce myself: I am a full stack software developer, I have been working in this field since my graduation in 2017.
I know redux since 2018, and I use it for various purposes (web and mobile apps), I appreciate
redux-toolkit
too and that's one of the reasons why I'm here. 😅My goal today is to contribute with you in order to make our Redux more better, with new ideas and a strong breath. To fix problems and serve the community 😌.
The problem:
With the simplifications brought by Redux Toolkit in the integration of Redux with React projects (or others), they are still some points making developers feel confused, the most important one is the state type: How to identify state, how to describe it, how to store it..?
In redux docs we read:
In another page we find also:
I can understand these expressions, 😎 and can imagine - based on my experience -:
But some people, including those who work with me, cannot, they pass long time to think about such thing and sometime they loose control, get locked up then ask for help! 😰
I think the time has come to fix some principles in redux architecture ✊! I mean, maybe one day we can ask redux:
Here, it may be useful if redux can guide the developer by saying:
👉 This means: redux guides the developer to a safe way, and gives hem the appropriate tools. (Like we see now with
createAsyncThunk()
,createSlice()
and rtkq'screateApi()
. This can even help developer to avoid long ways or doing mistakes. We can consider this as State typechecking! (Like TS type checking to variables). 🤩In an application we can see different types of state.
Based on some Google searches, I've faced many persons see different sort of states:
As you can see: Each one of these gives a different perspective, which can be confusing 😵. Personnaly, I feel that sometimes when doing some big tasks, and I ask a question:
Note: I've discussed recently with some redux maintainers, about this topic and they suggest me to use some specific keywords to describe state instead of just using global/local 👍.
What to do now?
I'd suggest to make an important evolution in redux-toolkit, and I'm ready to be one of the squad team. I don't want to give further details as this message seems sufficient. But I'm ready to provide more details.
Please share your feedback and impressions with me and let us improve.✌️
Thanks
Beta Was this translation helpful? Give feedback.
All reactions