-
Notifications
You must be signed in to change notification settings - Fork 1.2k
withController/withViewModel #543
Comments
Hi thank you, What the reason to hold state in
Also as I know such hacks will be a problem in a near future, How it differs from Also I don't like to say words like So at a first sight we will not accept this. |
because it's very clear what's going on, unlike immutability is great to certain degree, but forcing it leads to unmaintainable mess (compare decent redux vs. mobx applications) |
Be clear in your words - very clear for ... ? |
I really don't want to get more into this, but... Try to do doubly-linked list with immutable structures (it's hard). Or try to update object referenced from other objects, it's near to impossible. Obviously, it's not great fit for everything, and please don't get me wrong, immutable structures are great for a lot of things (query builders) but I've done quite a lot of applications (one with hundred different screens, every with its own unique stateful logic) in my career and I know that mutable state is not something we should be blindy afraid of. React is not strictly immutable, vdom is. MobX is also quite a lot about mutable state and it's usually used with React And I don't think recompose is strictly functional either - being utility belt alone does not imply anything like that. |
Mutability is sometimes required because of constraints on the implementation. PinchGestureHandler · React Native Gesture Handler Immutable animation causes serious impact on React Native. |
What do you think about something like this?
the idea is:
yes, it's not idiomatic react code, but it's very clear what is going on - it almost feels like poorman's mobx
EDIT: maybe it could accept class, so it would look even more angular/vue/polymer-like
The text was updated successfully, but these errors were encountered: