Is there any issue with passing a `java.time.Local...
# compose
e
Is there any issue with passing a
java.time.LocalDate
to a composable function, or should it be wrapped in something marked as
@Immutable
?
1
g
LocalDate is immutable and has equals/hashcode, so it will be fine
a
It won't be treated as stable by compose but you'll be fine. Most places you'd use a single date parameter are unlikely to be heavy enough to worry about not skipping those calls.
e
Thanks!
g
Adam, are there any plans to somehow allow external types to be marked as stable? Something like https://blog.jetbrains.com/using-external-annotations/
a
Yes
I'm not on the right laptop to have quick access to the bug tracker to find it but I think it's currently tracked as a medium priority feature
👍 1
d
that would be nice, this question arises from time to time on our different compose-based projects.
161 Views