To get started:
- Iโm currently working on -
- Iโm currently learning Advanced Data Structures and Algorithms
- Iโm looking to collaborate on Android Operating system
- Want to reach out: www.ericampire.com
To get started:
Greate tutorial my friend, i have question how can i pass parameter in retrofit api using this architecture ?
As you mentioned in MVI Architecture Medium post:
Reducer is something that produces a new state by combining the current state, instead, we have a suspend function for the state production in the sample.
Below are my questions:
viewmodel
?Thanks for sharing the article anyway. :)
First, good example and good article on medium. If I turn off internet connection the app crash, could be it's trying to get "userApi.getUser()" on main thread? I moved userApi.getUser() in a variable and I pass it to the updateState and now it works. What do you think? I'm trying to understand the behavior with coroutines.
private fun fetchData() {
viewModelScope.launch(Dispatchers.IO) {
try {
updateState { it.copy(isLoading = true) }
val userList = userApi.getUser()
updateState { it.copy(isLoading = false, users = userList) }
}
catch (e: Exception) {
updateState { it.copy(isLoading = false, errorMessage = e.message) }
}
}
}
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.