Florent Blot
Aug 8, 2022

--

Hello Richard,

Thanks for the feedback. You were right, I forgot to declare the immutable type when declaring the getter property: val itemsState: StateFlow<ItemsState> = _itemsState.

However, it's a nice tips you provided to explicitly use asStateFlow extension to prevent the mutable backing property.

I updated my post. Thank you.

--

--

Florent Blot
Florent Blot

Written by Florent Blot

Maker, Mobile developer, Kotlin & Dart enthusiast, IoT & DIY addict. @Geev: https://www.geev.com

No responses yet