Joost Klitsie
04/26/2022, 11:52 AMd.medina
04/26/2022, 7:54 PMBig Chungus
04/27/2022, 12:25 PMSpheniscine
04/28/2022, 7:49 AMMartin Vyšný
04/29/2022, 12:31 PMsteamstreet
04/30/2022, 5:48 PMArjan van Wieringen
05/02/2022, 6:28 AMSebastien Leclerc Lavallee
05/02/2022, 2:35 PM<leaflet-map fit-to-markers>
<leaflet-marker longitude="77.2" latitude="28.4">
Marker I
</leaflet-marker>
<leaflet-circle longitude="77.2" latitude="28.4" radius="300">
Round
</leaflet-circle>
</leaflet-map>
How could I generated those custom tags?
ThanksArjan van Wieringen
05/03/2022, 1:46 PMElementScope<SVGElement>
context? The normal HTML elements don't do that. It makes it impossible (due to the lack of JS support for now for multiple context receivers) to write context-aware composables for SVG elements.William Reed
05/04/2022, 2:29 PMd.medina
05/04/2022, 7:16 PMd.medina
05/04/2022, 7:16 PMArjan van Wieringen
05/06/2022, 7:29 AMPaul Woitaschek
05/06/2022, 4:44 PMArjan van Wieringen
05/07/2022, 7:38 AMComposeDomNode
Composable (https://github.com/JetBrains/compose-jb/blob/master/web/core/src/jsMain/kotlin/org/jetbrains/compose/web/elements/Base.kt) which look to be at the center of all of it. I have a few questions related to the compose-web part:
1. The DomNodeWrapper
handles the insertion and deletion of actual DOM nodes, triggered by the DomApplier
. Correct?
2. The ComposeDomNode
really ties into the internals of the composer. Is this because DOM recomposition requires only updating DOM elements and/or inserting/deleting them, instead of the clear-screen-redraw-routine of canvas/skia based rendering?
3. In the Applier I see (just like in Jake Whartons Mosaic demo) that they always assume the tree is built bottom-up. How is this known / enforced?Marius Ailinca
05/07/2022, 7:13 PMDazai
05/08/2022, 3:59 AMAntonius Naumann
05/08/2022, 2:52 PMBig Chungus
05/09/2022, 11:48 AMDOMSideEffect
or bring DOMScope
to regular SideEffect
? My use-case involves wrapping external JS component library in #kmdc project and I need an effect which runs on every
composition and provides access to native DOM element to sync-up the compose state with the external JS component.
• DisposableEffect
almost works as it has scopeElement
, but it skips the initial composition
• SideEffect
runs on all compositions, but doesn't provide access to scopeElement
• DOMSideEffect
covers everything I need, but is deprecated
EDIT: looks like initial composition is "skipped" on my DisposableEffect
handler due to missing js objects that I initialise in attrs::ref
lambda. Shouldn't attrs::ref
be invoked before DisposableEffect
?spierce7
05/10/2022, 12:50 PMspierce7
05/10/2022, 2:09 PMDragos Rachieru
05/16/2022, 8:24 AMJS
from local files?Partho Paul
05/18/2022, 9:45 AMInvalid Host header
error in browser. Can someone please help?Ace Tasos
05/18/2022, 5:05 PMCLOVIS
05/22/2022, 3:27 PMinterface Parent {
@Composable
fun render(...)
}
class Child {
@Composable
override fun render(...)
}
Calling the render
function on a child leads to:
Uncaught TypeError: $localVariable.render$composable_49qbjn_k$ is not a function
at eval (Navigation.kt?fd6e:149:17)
After inspecting the object, its prototype has a 'render_4kj0y7_k$'
function. Did something go wrong when Compose/Kotlin mangled the object?
Adding @JvmName("render")
to the parent class changes the function name in the error message, but it doesn't change which functions the object implements (its prototype still has `'render_4kj0y7_k$'`and not 'render'
)Big Chungus
05/27/2022, 9:32 PM1.2.0
releases as it's currently built on top of 1.2.0-alpha01-dev686
. However to let you play around with it anyways, 0.0.4 has just finished cooking (just be sure to match the compose version in your projects).
Slack ConversationPartho Paul
06/10/2022, 7:03 AMJoost Klitsie
06/10/2022, 12:38 PMEmir Sürmen
06/12/2022, 4:47 PMDerek Ellis
06/12/2022, 8:33 PMjava.lang.IncompatibleClassChangeError: Found class org.jetbrains.kotlin.ir.types.IrType, but interface was expected
at androidx.compose.compiler.plugins.kotlin.lower.decoys.WrapNotInlineableComposableLambdasForJs$wrapComposableLambdasInCall$mappedArguments$2.invoke(WrapNotInlineableComposableLambdasForJs.kt:142)
at androidx.compose.compiler.plugins.kotlin.lower.decoys.WrapNotInlineableComposableLambdasForJs$wrapComposableLambdasInCall$mappedArguments$2.invoke(WrapNotInlineableComposableLambdasForJs.kt:135)
etc...