Skip to content

Dropchop w/ React.js + Redux #268

@alukach

Description

@alukach

I've been doing some work with React.js and Redux and have been really enjoying it.
In Redux, you are serializing and storing the entire app state into a single object. This serves well when you have the same data represented in multiple places. Additionally, there is the concept of Actions that you send through a Reducer which alters the app's state.

I feel like the concepts fit in well with Dropchop. The actions could apply easily to data operations (eg "Buffer" or "Load from URL"). Storing the entire app state in a single object would make it easy to do things like sync data between the map and layerlist (this may not be a super big win, but could be helpful if you were doing something like toggling visibility or syncing the map's layer order with the layer list's layer order). Finally, by there are some new features that would be super easy such as storing the app state in localstorage allowing state to persist between sessions or storing state in an observable that can be rewound making for easy undo/redo.

This project hasn't been touch for quite some time. Any thoughts regarding me taking a stab at refactoring it to fit the architecture? I've done a quick test with this and it's been going pretty quickly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions