Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: When Can we Expect the support for Jetbrains Compose? #24

Open
avidraghav opened this issue Apr 21, 2023 · 4 comments
Open

Question: When Can we Expect the support for Jetbrains Compose? #24

avidraghav opened this issue Apr 21, 2023 · 4 comments

Comments

@avidraghav
Copy link

Hi Rick, first of all great work. I'm using Compose for iOS in my KMM project hence I can't use this library currently. So do you have any date/month in your mind by which there will be support for Jetbrains Compose? Thanks

@avidraghav avidraghav changed the title When Can we Expect the support for Jetbrains Compose? Question: When Can we Expect the support for Jetbrains Compose? Apr 21, 2023
@rickclephas
Copy link
Owner

Hi! I am afraid there is no ETA on Compose support.
However it would be very helpful to know how you are using Compose for iOS and what you would expect from KMM-ViewModel.

Note: while there isn't any support for Compose (yet), it's already possible to use ViewModels with StateFlows in Compose.

@avidraghav
Copy link
Author

I was going to use this library until I realised there is not Extension function or any way so that the KMM ViewModel from your library can be initialised in a Composable. I guess that will be general requirement. You already got the ViewModel part covered just need to provide some way so that the KMM ViewModel can be initialised in a Composable.

And Yeah I'm using Decompose + KRouter to meet my project requirements

@oianmol
Copy link

oianmol commented May 21, 2023

Hey @avidraghav You can use decompose instanceKeeper to initialize the viewModel!

@avidraghav
Copy link
Author

Hi @oianmol, yup I asked this question when I didn't knew about Decompose InstanceKeeper. I'm already using the same in my project Jetstar here
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants