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

Issue 5 - @Composable annotation seems not be required #8

Open
danimontoya opened this issue Jan 13, 2020 · 0 comments
Open

Issue 5 - @Composable annotation seems not be required #8

danimontoya opened this issue Jan 13, 2020 · 0 comments

Comments

@danimontoya
Copy link
Collaborator

danimontoya commented Jan 13, 2020

Android Studio Build:

Android Studio 4.0 Canary 8
Build #AI-193.5233.102.40.6107147, built on January 2, 2020
Runtime version: 1.8.0_212-release-1586-b4-5784211 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.6
GC: ParNew, ConcurrentMarkSweep
Memory: 4012M
Cores: 12
Registry: ide.new.welcome.screen.force=true, ide.balloon.shadow.size=0
Non-Bundled Plugins: com.chrisrm.idea.MaterialThemeUI, com.squareup.sqldelight

Version of Gradle Plugin:

4.0.0-alpha08

Version of Gradle:

gradle-6.1-rc-1-all

Version of Java:

1.8

OS:

MacOs Mojave 10.14.6

Steps to Reproduce:

  • Do not annotate any function with @composable
  • Launch the app

Expected result:
Compose, by definition, works the same way as suspend (function decoration).. altering a function type.
Composable works within the same context like suspend.

IllegalStateException: Composition requires an active composition context

Sample branch:
https://github.com/arrow-kt/compose-samples/blob/gotchas/gist5/JetNews/app/src/main/java/com/example/jetnews/MainActivity.kt

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

1 participant