Giter VIP home page Giter VIP logo

android-flux-todo-app's People

Contributors

lgvalle 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  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

android-flux-todo-app's Issues

ActionCreator is too fat ?

Architecture

In this architecture, ActionCreator file contains:

  • methods when User interact with UI. However there are many activities, and many interaction.
  • methods interact with API adapter.

I think there are many methods in ActionCreator file.

  • Do you think this file is too fat ?
  • And do you have solution for this issue ?

about dispatcher and store

As shown, all calls are one-way, but in your code is : View -> Actions Creator -> Action -> Dispatcher -> Store -> Dispatcher -> View. which calls the dispatcher in TodoStore not feeling well.

Replace Bus with RxJava

... since you're already using RxJava. Square also recommends switching to it.

Deprecated!
This project is deprecated in favor of RxJava and RxAndroid. These projects permit the same event-driven programming model as Otto, but they’re more capable and offer better control of threading.

Issue with Single Dispatcher

#Hi lgvalle,

Thankyou for the code implementation, that help me understand flux architecture really well.

I have implemented your architecture in my code. But at one point came I had to break the rule of single dispatcher which is the core of flux architecture.

While there are some actions that are being propagate through UI, I have a background service that hits api server every 30 seconds. As soon as one store working on UI event, another store change event from background service register by dispatcher that nullifies my last change event call and post a null object to OTTO event bus hence view controller in UI never informed that the task is finished. To resolve this problem I had to create another dispatcher to keep background service work on separate thread thus ended up in breaking the rule of single dispatcher.

Please help me to resolve my issue.
Omama Moin

List is blank after rotate

Steps to reproduce:

  1. enter some items
  2. rotate

Result:
you see empty list and the input view with opened keyboard. Even if you close the keyboard, the list still empty.

The list is refreshed again once you enter new item.

Breaking unidirectional data flow principle ??

Thanks for this very good example it helped me a lot to get started with the flux architecture. And I am implementing it in my application.

I am wondering, if by having a reference to the Dispatcher in the Store and emitting the Store changes event with this Dispatcher you are not breaking the unidirectional principal ?

I think that by using the dispatcher to emit the the event the event goes back from store to the dispatcher. It is where I think there is a problem in your implementation.

If the store was able to emit changes directly to the view then I think the flow will be respected.

Let me know what you think about it

Kevin,

Where do you want to put DB ?

In your architecture, I don't know where is right place of DB layer (ORM, datasource, sqlite, ...)
Could you explain (or draw architecture) detail of DB layer ?

How to handle popup dialog?

Hi,
I am new start of Flux.
Step :

  1. Started a new activity.
  2. Display a popup box for the message from previous activity
    e.g. Type username press login, go to Home page display the popup.

Questions:

  1. Is trigger the popup from Activity directly?
    OR
    Activity (passing message & activity [Home Activity]) => ActionCreator => Dispatcher => Store (invoke activity function to display popup with the message passing in from first step) => Activity (same activity [Home Activity])?

  2. Should keep the message in Store instead of intent?

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.