Question: is ComposeUnstableReceiver
rule aware of the runtime stability?
#282
Unanswered
francescocervone
asked this question in
Q&A
Replies: 2 comments 5 replies
-
By the very nature of lint checks, it's static analysis and not runtime analysis. We could make it smarter and try to map some of the checks the compose-compiler does (which itself is also static and not truly runtime). PRs are welcome in that department. All that said, do you know what "runtime stability" means in this case? It's not actually explained in the linked doc 🤔 |
Beta Was this translation helpful? Give feedback.
5 replies
-
In my case this rule treats all |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm asking because we are trying to upgrade the Slack Compose Lints from 1.2 to 1.3 and we got a bunch of
ComposeUnstableReceiver
issues on receivers that are actually stable or immutable.I'm talking about the runtime stability, the one automatically inferred by the compose compiler, without manually annotating the classes. I tested it by generating the compose compiler reports (https://developer.android.com/jetpack/compose/performance/stability/diagnose#compose-compiler).
Something like this below generates a lint issue:
Is this the expected behavior?
If so, what is the suggested action we should take in this case in your opinion?
Should we suppress the issue or manually set the class as
@Stable
/@Immutable
?Thanks
Beta Was this translation helpful? Give feedback.
All reactions