GithubHelp home page GithubHelp logo

glung / redux-java Goto Github PK

View Code? Open in Web Editor NEW
327.0 7.0 20.0 1.63 MB

The java version of Redux : a predictable state container for apps.

Home Page: https://github.com/jvm-redux/

License: MIT License

Java 100.00%

redux-java's Introduction

// This project is unmaintained //

▲▲▲ Redux-java ▲▲▲

A java implementation of jvm-redux-api

Integration

Gradle

allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
  }
}
dependencies {
  compile 'com.github.glung:redux-java:1.0'
}

Maven

<repositories>
  <repository>
      <id>jitpack.io</id>
      <url>https://jitpack.io</url>
  </repository>
</repositories>
<dependency>
  <groupId>com.github.glung</groupId>
  <artifactId>redux-java</artifactId>
  <version>1.0</version>
</dependency>

redux-java's People

Contributors

glung avatar mkaulig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

redux-java's Issues

change notifyStateChanged call order

if a subscriber unregister itself while onStateChanged, some subscribers can't get notified

private void notifyStateChanged() {
    for (int i = 0, size = subscribers.size(); i < size; i++) {
        subscribers.get(i).onStateChanged();
    }
}

should be

private void notifyStateChanged() {
    for (int i = subscribers.size()-1; i >=0; i--) {
        subscribers.get(i).onStateChanged();
    }
}

Animating removal/addition of todos in the example apps

In the TODO list example, you have to set the items in the adapter and call the notifyDataSetChanged method instead of one of the more specific methods (e.g. notifyItemRemoved). Note that when calling the more specific methods, it allows RecyclerView to actually perform the removal/addition/change/etc animations.

With all these unidirectional data-flow architectures, it seems they build the UI as a function of the state. I think that's a really enticing concept, but I can't see how something as simple as the issue mentioned above is supposed to work. Is there a way to fix this or is it just a limitation of the architecture?

Motivation

What would be a motivation for such project? Which usecase would it address for someone? At the moment I can only think of Android clients that could potentially use this.

Would be nice to see such a motivation statement in readme file with explanation.

Thanks for awesome work.

Example without dagger

You have done a great job, I think if you provide examples without dagger this repo will fly

Dagger will just add complexity to people how don't know about it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.