trikita / jedux Goto Github PK
View Code? Open in Web Editor NEWRedux architecture for Android in good old java
License: MIT License
Redux architecture for Android in good old java
License: MIT License
On your blog, you mention that the middleware might be instantiated with the context. This would be the application context then since the store creation takes place in the application class, right? What if I need the current activity's context, e.g. for launching a new activity? In some examples I've seen that this is simply done in the view->onClick for example and not in the middleware. But what if I want to launch an activity based on some other action that was dispatched or I simply want to separate concerns and only have the view dispatch CLICKED and let a middleware determine what happens (redux-saga style)?
I wouldn't want to hand around my activity context to avoid memory leaks and such or do I have to? Or is there a way to dynamically add/remove middlewares onCreate/onDestroy of an activity?
(posted this on your blog, but maybe here is a better place for it)
Gradle could not resolve the library from jitpack by using "com.github.trikita:jedux:+"
(as is written in the documentation)
So I visited https://jitpack.io/#trikita/jedux and could not use any of the Releases artifacts.
Only once switching to Commits and using 'com.github.trikita:jedux:-SNAPSHOT'
was the library successfully resolved by Gradle.
As I do not like pointing to a SNAPSHOT I changed it to point to the last commit 'com.github.trikita:jedux:80389e26dc'
Also consider not using +
for the dependency version as it's not a very good practice (and Android Studio will display a warning every time such a dependency is added to the build file)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.