|
|
|
|
|
by jlongster
3808 days ago
|
|
Elm's HTML engine conceptually the same as React+Redux and Om Now. It's just a big single atom app state with ways to describe how to update it. It has all the same problems as Om Now (maybe not quite as bad because it doesn't have cursors, but it doesn't solve the data-as-a-graph problem). |
|
That's really not true. The nature of the Elm architecture means it already does this:
> Instead, Om Next asks you to define a set of mutation operations which can change your application’s state.
except it calls that "the `update` function".
The graph problem also seems slightly different, although it is way less convenient than Om Next as it is less declarative and must be bubbled through intermediate "components", Elm "render state" (and render hierarchy) doesn't have to match the application state, it's perfectly possible (and very useful) to duplicate, denormalise and process application state during rendering to match your rendering hierarchy (although it is a very bad idea to denormalise the application state itself).
Elm's trouble is mostly the "remote mismatch".