Hello wonderful people :wave::skin-tone-3: I start...
# compose
v
Hello wonderful people 👋🏼 I started collecting and answering some “Frequently Asked Questions” about Compose. I would love to know which other questions I should be adding to this list. You can find it here 👉🏼 https://JetpackCompose.app/faq. Also if you think any information is incorrect, please let me know!
👏 12
🔥 1
❤️ 8
z
This is awesome, thanks! I was just wondering the other day if something like this existed. Every week someone asks about dagger in compose, would you consider adding an entry about that?
v
oh yeah! That is a good one!
Thanks Zach 🙏🏼
b
This is great, just a headsup that the bottom FAQ the link is broken
<a href="" https:="" <http://developer.android.com|developer.android.com>="" guide="" navigation="" navigation-getting-started="">Navigation Component</a>
z
Here’s the latest thread on DI, links to some previous threads, hopefully that’s enough to seed an answer: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1595516300212500
How to handle orientation changes comes up now and then, with the response being “Just use an `if`”
I’m not sure if you’re trying to just keep this to “official” answers, but the section on navigation could maybe be more useful by pointing to some of the third-party libraries people have come up with to solve this problem. Probably most notably, compose-router: https://github.com/zsoltk/compose-router
v
This is fantastic feedback ya’ll! What I’m going to do is give a shoutout to ya’ll on the website. Would that be okay?
👍🏻 3
b
🙌🏼 1
o
That seems like a pretty exclusive domain name, I hope you are committed to maintaining it.
v
Oh boy that’s a lot of pressure 😄
changes are live! Thank you for your recommendations and suggestions 🙏🏼
s
Difference between state, savedState and remember functions. How to use predefined text styles. What is a modifier. Most used modifiers. Reason to have modifier.
1
Is it safe to pass State object or (should compose get value or state object)
z
Maybe something specifically about the best ways to pass in data, comparing lexical scope vs parameters vs Ambients? You mention this in the Dagger section, not sure if it would be worth breaking out into its own section.
2
v
@Sinan Kozak some good suggestions there!
@Zach Klippenstein (he/him) [MOD] You mean you mentioned that in the Dagger section 😄
g
Really nice resource! I would add ViewPager as component (in the app, not the faq)
Also, how to use Viewmodel and LiveData with Compose
v
how to use Viewmodel and LiveData with Compose
this in particular is already on the site.
👍 1