Skip to content

Instantly share code, notes, and snippets.

@JosefJezek
Last active May 29, 2017 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JosefJezek/ed6746444cb7579d633ef26df2a73cbc to your computer and use it in GitHub Desktop.
Save JosefJezek/ed6746444cb7579d633ef26df2a73cbc to your computer and use it in GitHub Desktop.
Polymer UniFlow

Polymer UniFlow

Demo

Answers from @militeev

With UniFlow you move all your complex logic to action dispatchers, leaving to the visual elements only tasks of rendering the data and reacting to user events. This simplifies things a lot, especially when it comes to unit testing.

Answering the question if this is another alternative to Redux, the answer is probably yes. We started the project in early 2016, and Flux and Redux ideas definitely influenced it.

I would say it's implementation of basic principles of Flux/Redux + convenience methods for views.

Yes, it was developed as part of an internal project at Google, then we separated it out, documented and open-sourced.

From my experience, patterns are easier to follow if they're implemented in the code. For small projects it's not critical. When you have large group of people working on a project, chances are that different people will attempt doing same thing in various different ways. Having library and guidelines how to use it helps in this case.

Yes, you can easily implement all these concepts yourself, customizing the way you want. The advantage of having the library is that someone already thought about different scenarios that may occur, coded those and unit-tested.

Redux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment