Code Monkey home page Code Monkey logo

vita's Introduction

Anurag's GitHub stats

vita's People

Contributors

farshadtahmasbi 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

vita's Issues

[Question] Can the shared ViewModel be attached to only Fragment's lifecycle, not to activity's lifecycle

Hello,

As said in the title - Can the shared ViewModel be attached to only Fragment's lifecycle, not to activity's lifecycle?

I have checked readme and peeked at the code, but I am not sure if such functionality works as I described. For now it it the biggest issue for me: when I enter some fragments with steps I want to share LiveData. When I leave all of the fragments for some reason (quiting or finishing all steps) I want to see ViewModel being destroyed to keep memory free + reset data which is not needed now. When it is attached to the activity then when I re-enter steps, I will get shared ViewModel with live data that is already set, which is not the thing I want

Greetings,
Janusz

[Question] Can I use Vita as State Container, if so can I partition state/sharedViewModel?

Hi,
Vita is defined as a lib to share ViewModels across activity or make them global at App level.
But can it be used a state container / single source of truth for Android? Quoting web frameworks (sorry for that) can Vita be the Redux/Vuex for Android ecosystem?

More specifically: in case of a ViewModel with No Owner (shared across all application) is there a way to lazy load only the parts of the ViewModel that are needed at a certain point to avoid fat ViewModel?

You could say just use a regular ViewModel for that fragment/activity, but what if I need the same ViewModel with te same info (e.g. the logged user and I do not want to use sharedPrefs) at different places in my app? Is it possible to modularize the ViewModel with No Owner and load only chunks of it when needed?

Thanks!

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.