Giter Club home page Giter Club logo

ensody / reactivestate-kotlin Goto Github PK

View Code? Open in Web Editor NEW
33.0 33.0 2.0 1.66 MB

Easy reactive state management and ViewModels for Kotlin Multiplatform. No boilerplate. Compatible with Android.

Home Page: https://ensody.github.io/ReactiveState-Kotlin/

License: Apache License 2.0

Kotlin 97.56% Dockerfile 0.13% Shell 1.65% Python 0.67%
android android-library coroutines demand-driven demand-driven-programming jetpack-compose kotlin kotlin-android kotlin-multiplatform kotlin-multiplatform-library kotlin-mvvm lifecycle lifecycle-handling mobile-development mobx reactive reactive-programming state-management stateflow viewmodel

reactivestate-kotlin's People

Contributors

brudaswen avatar dependabot[bot] avatar wkornewald 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

Watchers

 avatar  avatar  avatar

reactivestate-kotlin's Issues

Use with Jetpack Compose?

Hi,

I would like to understand how to use this library with Jetpack Compose. IIUC, this library can be used to build Business Logic and ViewModels, and then @Composables can consume the state-flows with .collectAsState().

Is that correct? If so, would .collectAsState() introduce too much additional overhead?

Alternatively, is it possible to create a class that implements both State and StateFlow to avoid code and memory duplication?

thanks!

Use derived without Dispatchers.Main

I have a simple console application that I want to use 'derived' to map some state flows
can I do that without Dispatchers.Main ?
I can't figure out why derived needs the Main Dispatcher . (why not using Dispatchers.Default ? by default)

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.