Comments (5)
No, it is not fixed yet.... i just encountered the same issue while testing, and found the solution also by myself and thinking, maybe this fault is on purpose to test our understanding of the function because it is so easy to see?... :-)
from basic-android-kotlin-compose-training-unscramble.
Yes, you're right. I spotted it, too. Because init block in GameViewModel calls resetGame(). In this function, a new instance of GameUiState with shuffled word is created for _uiState. So, currentWordCount takes default value, 0. I'm sure this mistake will be fixed, soon.
from basic-android-kotlin-compose-training-unscramble.
Could you please check now.
This should have been fixed!
from basic-android-kotlin-compose-training-unscramble.
@android-dev-lxl this has not been fixed on the Codelab it still states
val currentWordCount: Int = 0, val score: Int = 1,
when the object is created, currentWordCount should be 1 and score should be 0
from basic-android-kotlin-compose-training-unscramble.
Hello @enikebraimoh,
Thank you for reaching out to us. The typo is fixed:
from basic-android-kotlin-compose-training-unscramble.
Related Issues (20)
- Android Basics: Viewmodel and State in Compose
- Android Basics: Viewmodel and State in Compose
- Android Basics: Viewmodel and State in Compose
- Android Basics: Viewmodel and State with Compose
- Android Basics: Viewmodel and State in Compose
- Android Basics: Viewmodel and State in Compose
- Android Basics: Viewmodel and State in Compose (junit-version) / Android Studio jellyfish?
- Android Basics: Viewmodel and State in Compose
- Android Basics: Viewmodel and State in Compose - compose.viewModel can't be found HOT 1
- Android Basics: Viewmodel and State in Compose
- Local tests are not running
- Android Basics: Viewmodel and State with Compose
- Android Basics: Viewmodel and State in Compose
- Android Basics: Viewmodel and State in Compose HOT 2
- Android Basics: Viewmodel and State with Compose
- Android Basics: Viewmodel and State in Compose
- Android Basics: Viewmodel and State in Compose
- Android Basics: Viewmodel and State in Compose
- Android Basics: Viewmodel and State in Compose
- Android Basics: Viewmodel and State in Compose
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from basic-android-kotlin-compose-training-unscramble.