vivid-money / elmslie Goto Github PK
View Code? Open in Web Editor NEWKotlin TEA/ELM implementation with first class android support
Home Page: https://github.com/vivid-money/elmslie
License: Apache License 2.0
Kotlin TEA/ELM implementation with first class android support
Home Page: https://github.com/vivid-money/elmslie
License: Apache License 2.0
All plugin versions older than v3.2.0 will stop working since Nov 30, 2022
More info here: https://blog.dipien.com/releases-hub-gradle-plugin-v4-0-0-32cfca1d0de1
@opengamer29 provide details
subj in title
maybe #207 will solve this issue too
Including migration
Since v1.2.0 store implicitly starts right after the first incoming event. If it's not an Init event for some reason, then later Init event will be ignored.
Add a way to subscribe to all store events. It may be some kind of listener or flow of store events (preferred)
Need add a kotlin-publishing.gradle
config in elmslie-test and elmslie-test-rxjava3 gradle files
Update Gradle scripts to industry standards
Preconditions:
There are two ElmFragments which are only container for Composable functions. Subscribe to Flow(Effect) with effects
extension inside Composable fun.
Steps to reproduce:
IMPORTANT NOTE
It's related only for Flow. Due to research, I found that ElmScreen always subscribes to effects when Fragment is resumed. Since we manually subscribes to effects, this behavior broke the logic.
CoroutineScope inside Composable starts later than Fragment is get resume state, so ElmScreen consume effects but it shouldn't.
If one day we'd switch to maven central instead of jitpack (๐ค๐ป ) โ we won't be able to prove owning money.vivid
domain (which maven central will require to prove with current artifact coordinates of vivid.money.elmslie
) โ we need to change that to money.vivid.elmslie
More info inside this discussion
subj in title
Maybe we can make State to inherence from class ComposableState with field UiEffects. And allow storing Composable side-effects inside this new field. In this case inside reducer, we will have our usual handle effects field for system effects, and this UIEffect field of State for Composable Ui Effects
The main problem with this approach is duplicating Effects after process death. Effect will be saved in state and dispatched you ui the second time after store recreation since there's no mechanism to remove it from state after it was displayed
We discussed that it will be nice to have some kind of callback, that calls before the store is destroyed and allow the lib user to save part of the state to SavedStateHandle.
Return ElmStore from addChildStore inside ElmStore in order to support chaining addChildStore callse
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.