Assigned
Status Update
Comments
ma...@google.com <ma...@google.com>
co...@google.com <co...@google.com>
be...@google.com <be...@google.com> #2
This is probably happening because there are multiple instances of DataStore active. You should consider managing the DataStore as a singleton. See the attached bug for more info.
Description
I suggest we create an internal Modifier.surface which does everything that Surface does, without the Layout Node and composition local. Then, other components can use that modifier and apply it to the root layout node of its composable instead of using Surface.
This would be beneficial because:
1. it could reduce the number of layout nodes / nesting we have for material components.
2. it could reduce the number of redundant composition locals that we provide in these components
3. It allows us to do less work
More details can be found in aosp/2723634