Scoping ViewModels in Compose

Lifecycle ViewModel 2.11.0-alpha02 introduces rememberViewModelStoreOwner, an API to scope ViewModelStore directly within the Compose hierarchy. Why It Matters Until now, ViewModelStore scoping was tied to navigation destinations, activities or fragments. There was no clean way to scope a ViewModel to an arbitrary part of your UI (such as a Pager page, a LazyList item, or a custom layout) without building your own ViewModelStoreOwner from scratch. These new APIs close that gap:

Just finished a big refactor of my #CMP Unit Converter app: it now follows the new recommended Compose Multiplatform structure and runs on AGP 9.

Separate #Android app module, shared #KMP library with the new Android KMP plugin, Gradle 9.1 — and it still builds and runs on Android, iOS, and desktop

https://github.com/tkuenneth/CMP-Unit-Converter

GitHub - tkuenneth/CMP-Unit-Converter: A Compose Multiplatform unit converter

A Compose Multiplatform unit converter. Contribute to tkuenneth/CMP-Unit-Converter development by creating an account on GitHub.

GitHub
Trustwards – The Consent Management Platform for GDPR Compliance on Autopilot 👉 https://lttr.ai/AoJEe #CMP
...and now the power's back on. I think CMP's alerting system could use a bit of calibration. It's currently saying my road does not have power.

I always give it a bit when the power comes back because more than once it's come back then gone out again shortly after. I think this outage might be over though.

#maine #CMP #PowerOutage
Now they're saying 11am. Yeah.

#maine #CMP #PowerOutage
Central Maine Power is claiming power will be restored here by 7:15am, about half an hour from now. But as I recall that's what their alerts said last time, at least until it became clear it would be an extended outage. So I've hunkered down in case this one lasts awhile.

#maine #CMP #PowerOutage
We didn't get that much snow, but the temperature is hovering near freezing so it's wet and heavy. Probably tore down some tree branches.

A couple years ago we went a good five days without power (about a day in between two longer outages when we did) but haven't had one since till now.

#maine #CMP #PowerOutage
Power went out at 5am here in Alfred. The fire alarm beeping because of the power loss woke up my son, which in turn woke me up. Good thing. Fire's stoked now.

#maine #CMP #PowerOutage