Replies: 3 comments 6 replies
-
I am not sure I understand fully your question. |
Beta Was this translation helpful? Give feedback.
-
Could that maybe be So, make |
Beta Was this translation helpful? Give feedback.
-
This is my very personal conclusion, drawn from continuously searching for references and basing it on them It was mentioned that all properties of a StateHolder should be based on Actually, all StateFlows in Moreover, each interface ( |
Beta Was this translation helpful? Give feedback.
-
Currently, looking at the primary constructor of
NiaAppState
, only theWindowSizeClass
is marked as@Immutable
, and the rest seem to adhere to SSOT principles through interfaces (theNavHostController
is provided solely throughrememberNiaAppState
, which appears to meet SSOT principles - #186).I am curious whether it's acceptable to omit the
@Immutable
annotation if all methods of an interface are considered to have referential transparency.Because, according to the Compose API guide, a class using the
@Stable
annotation should back its properties only with other@Stable
or@Immutable
types.Beta Was this translation helpful? Give feedback.
All reactions