-
Notifications
You must be signed in to change notification settings - Fork 1
Description
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