https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
compose-web
  • a

    AJ Alt

    05/06/2021, 4:27 PM
    It looks like
    0.0.0-web-dev-11
    doesn't support Kotlin 1.5. Is there a version that does?
    o
    • 2
    • 1
  • c

    Chris Sinco [G]

    05/07/2021, 2:03 AM
    So if an element like
    iframe
    is not in the DOM API, what does one do?
    j
    c
    +2
    • 5
    • 7
  • d

    Daniele B

    05/09/2021, 8:57 AM
    Is
    SaveableStateHolder
    an Android-only component or does it also work on Web and Desktop? https://developer.android.com/reference/kotlin/androidx/compose/runtime/saveable/SaveableStateHolder It seems like it could be a good base to build a multiplatform Compose Navigation component. The current Android's Compose Navigation isn't compatible with the other Compose platforms, as it's a wrapper to the old Java-written Android Navigation.
    d
    j
    • 3
    • 5
  • s

    SrSouza

    05/09/2021, 7:52 PM
    Hi folks, anyone was able to use Ktx Serialization with compose-web? any workaround for this issue: https://github.com/Kotlin/kotlinx.serialization/issues/1454
    👀 1
    b
    s
    m
    • 4
    • 4
  • m

    MrPowerGamerBR

    05/10/2021, 1:56 PM
    What can trigger a
    java.lang.IllegalStateException: Unreachable execution: there could not be back-links
    when compiling? I can't figure out what can trigger this exception, in my code sometimes even stuff like "having two composable calls with the same arguments" can cause this issue.
    o
    n
    j
    • 4
    • 7
  • e

    epabst

    05/12/2021, 5:33 PM
    There are a ton of great ReactJS components. Is there any way to use them in Compose for Web or does it require rewriting them?
    b
    o
    • 3
    • 13
  • m

    Michael Paus

    05/12/2021, 5:44 PM
    Is this move by Google https://workspaceupdates.googleblog.com/2021/05/Google-Docs-Canvas-Based-Rendering-Update.html inspired by or interesting for the direction of Compose-Web?
    b
    r
    +2
    • 5
    • 5
  • m

    Marko Novakovic

    05/13/2021, 3:14 PM
    how does theming work in
    compose-web
    ?
    c
    c
    b
    • 4
    • 7
  • j

    Justin Yue

    05/17/2021, 5:35 PM
    Is there a way to deploy a compose website?
    o
    • 2
    • 2
  • f

    Fabio Santo

    05/17/2021, 11:52 PM
    Hey everyone, I'm playing with compose for web, how do you use a
    Input
    composable? In need to get the value out of it, I can't find anything to hook my state to.... should I use the
    ref
    attribute maybe ?
    j
    o
    h
    • 4
    • 3
  • h

    hfhbd

    05/18/2021, 9:43 AM
    How do I get the latest web-compose release tags?
    o
    • 2
    • 1
  • c

    cafonsomota

    05/18/2021, 1:26 PM
    hello all! I was trying out the
    web-getting-started sample
    , and I’ve noticed that functions like
    Column
    or
    Row
    don’t seem to work. I’ve just grabbed the
    Button
    s and
    Span
    and add them inside
    Column
    . Is there something that I’m missing?
    o
    s
    +2
    • 5
    • 6
  • m

    Minecraaftt

    05/18/2021, 11:43 PM
    Is it possible to use compose for web and compose for desktop in the same project?
    o
    g
    u
    • 4
    • 5
  • c

    Carter

    05/20/2021, 2:48 PM
    Where are the release versions listed for compose-web? I see where they’re listed for compose-desktop.
    o
    o
    +2
    • 5
    • 4
  • m

    mirland

    05/20/2021, 4:42 PM
    Hey, does someone have any information about material in #compose-web? I checked and it's not supported, so I want to know if it'll be supported and if there's a tentative date for that
    m
    j
    • 3
    • 2
  • j

    John O'Reilly

    05/20/2021, 7:52 PM
    Just fyi that Compose for Web changes have now been merged in to main branch of PeopleInSpace (https://github.com/joreilly/PeopleInSpace…) (had been waiting on a couple of libraries to make updates to support Kotlin/JS IR compiler). Note that existing web module is still there (that uses Kotlin/JS React wrappers). Any feedback for better ways of doing what's there are very welcome as always!
    :kotlin-intensifies: 22
    c
    • 2
    • 4
  • d

    Daniele B

    05/22/2021, 6:44 PM
    Is there any plan to make MaterialDesign’s
    Scaffold
    available also in Compose for Web?
    s
    d
    o
    • 4
    • 4
  • b

    Big Chungus

    05/23/2021, 7:10 PM
    Has anyone tried using compose-web with mdc yet?
    j
    c
    +5
    • 8
    • 38
  • b

    Big Chungus

    05/24/2021, 12:15 AM
    how do I merge two
    attrs
    without one overiding other's classes? I've tried this, but only the latest classes remain
    @MDCDsl
    @Composable
    inline fun MDCIconButton(
      icon: String,
      crossinline attrs: AttrsBuilder<Tag.Button>.() -> Unit = {},
      crossinline style: (StyleBuilder.() -> Unit) = {},
    ) {
      MDCIconButton(
        attrs = {
          classes("mdc-icon-button", "material-icons")
          attrs() // <------------------------------ If the consumer sets classes here, above classes are gone
        },
        style = style,
      ) {
        Text(icon)
      }
    }
    a
    c
    • 3
    • 5
  • o

    orangy

    05/25/2021, 12:24 PM
    I think I have some ideas 🙂 https://twitter.com/simonw/status/1396917715705622528
    j
    a
    +3
    • 6
    • 17
  • h

    hfhbd

    05/25/2021, 1:25 PM
    Do you want to include the web artifacts in the next release of Compose (with Kotlin 1.5.0)?
    o
    • 2
    • 11
  • m

    Minecraaftt

    05/26/2021, 2:55 AM
    Does 0.0.0-web-dev-13 contain Android binaries?
    o
    • 2
    • 4
  • s

    Sam

    05/26/2021, 8:26 AM
    Do you have any tips on how to implement basic navigation based on
    window.location.pathname
    ? I'd like to use single html template and make
    renderComposable()
    inject different DOM tree based on the current
    pathname
    . Web compose works on root host by default, and browser returns
    Cannot GET /path-name/
    when I try to reach
    host/path-name/
    . Is there currently any way to define supported paths so I can render different UI for them, provide 404 templates, etc?
    b
    h
    • 3
    • 2
  • g

    Greg Steckman

    05/26/2021, 2:53 PM
    Are there any thoughts about providing a default styling for the Widget entities? For example, using mdc as discussed in a previous thread?
    b
    • 2
    • 2
  • c

    Carter

    05/26/2021, 7:20 PM
    Is there a good way to write automated tests for Compose Web? I see some resources mentioned for Compose Desktop but not sure where I might look for Web.
    👍 2
    o
    b
    • 3
    • 8
  • m

    Minecraaftt

    05/26/2021, 11:52 PM
    When I added Compose for Web to a project, IntellIJ stopped importing the modules in the common module, but Gradle can still access the modules
    o
    • 2
    • 4
  • t

    theapache64

    05/28/2021, 8:05 AM
    Do we have a full example on how to use multi-platform widgets with web support?
    o
    • 2
    • 3
  • c

    Carter

    05/28/2021, 12:13 PM
    Let’s say I’m modularizing a compose web app being served by a JVM ktor server. So I’ve got: browserApp module contains all the compose UI and also image assets. serverApp module contains several rest endpoints plus the root route returns the compose JavaScript client. My question is: is there a way currently to get the image assets in browserApp to be served from serverApp? Currently they aren’t being packaged into the server JAR, and I don’t know if this is possible.
    b
    • 2
    • 6
  • u

    [JB] Shagen

    05/28/2021, 1:08 PM
    A small discussion with community. After bit of discussion we've decided to get rid of following API method:
    classes {
       +"a"
       +"b"
    }
    and suggest everyone to use just classes("a", "b"). Since previous release this method behaves cumulative and there are no cases that can be covered with "regular" API call compared to the builder counterpart. If you know such cases or think that the builder version is still preferable in some cases - let's discuss. We are not making any promises but it would be very helpful at least to take into consideration any points we've missed. Speak now or never )
    🆗 3
    👍 8
    👍🏻 1
    b
    l
    • 3
    • 12
  • j

    jtravis

    05/28/2021, 4:31 PM
    Is there any support for hot reloading / auto refresh in compose-web?
    🇳🇴 1
    s
    • 2
    • 2
Powered by Linen
Title
j

jtravis

05/28/2021, 4:31 PM
Is there any support for hot reloading / auto refresh in compose-web?
🇳🇴 1
s

Sam

05/28/2021, 8:16 PM
There is autorecompiling->autorefresh thing if you run
jsBrowserRun
task with
--continuous
flag, but it's not as fast as typical hot reload.
It's called "live reload" actually
View count: 3