rocketraman
03/29/2022, 6:49 PM/kv/routeFoo1
, /kv/routeFoo2
. Does this imply that changing the order of methods in the interface breaks compatibility with existing clients? For both compatibility reasons and clarity of debugging in the network inspector, does it make sense to give routes names based on the target method name: /kv/routeFooSomeMethod
and/or an annotated name?Michal Klimczak
04/04/2022, 8:38 PMlink("/test", url = "/test", dataNavigo = true)
work the same as routing.navigate("/test")
? Because for me, the former reloads page, while the latter works as expected (uses history api).Philipp Smorygo [JB]
04/10/2022, 3:23 AMbind(AppManager.store.sub { it.commercialProposalState to it.customerState }) { states ->
commercialProposalEdit(states.first, states.second)
}
This view is shown only when state.coreState.view == CP_EDIT
Also this view uses some fields from
Then I dispatch an event that changes state.coreState.view
and sets state.customerState
fields to null.
After that I got an exception that some field from state.customerState
is null. But view state.coreState.view
is already changed so my component should not update anymore. It looks like it’s updated first, and only then it is replaced by another view. It seems that this update should not happen, because the component should be disposed before it’s update could be triggered
Also this breaks the app and my commercialProposalEdit
component is never disposed and on every state
change it throws an exception. So only reloading the page helps.Philipp Smorygo [JB]
04/15/2022, 8:47 PMAbstractServiceException
with message "required Throwable, actual ServiceException"
. Also, references to Exception
in io.kvision-kvision-common-remote-commonMain
module are not resolved to anything.
The project however compiles file.
I use IDEA 2022.2 EAP 222.1198. Is it a problem on IDEA side, or something is not well with kvision module?Jalil
04/16/2022, 12:02 AMrocketraman
04/27/2022, 6:34 PMcommonMain
, frontendMain
, and backendMain
. This is fine for now, but the next iteration of this will likely have desktop, android and iOS targets as well. I'll want a source set or library that has common code across all the frontends (but not backends, as some of that common code has no JVM platform target e.g. GitLive firebase-auth).
Any advice/experience with structuring this kind of project? (More in comments)Tom
05/01/2022, 8:45 PMJörg Rade
05/05/2022, 3:47 PMrocketraman
05/10/2022, 1:26 PMrequestFilter: (RequestInit.() -> Unit
, however that lambda is non-suspending, which makes integrating with something that might need to do a suspending call to refresh a token unnecessarily difficult, especially with the lack of runBlocking
on JavaScript. Thoughts on making that suspending to enable this kind of use case?João Paulo Figueira
05/23/2022, 7:52 AMPolyline.PolylineOptions
interface and this is causing me some issues. From what I can see from the sources, I also need to create new classes to implement Polyline
and Polygon
because both implement the abstract Path
parameterized by Polyline.PolylineOptions
. This would be a simple case of copying your code and using the new context-menu enabled options class, but… Is there an alternative? TIA!!Robert Jaros
06/01/2022, 10:42 AMrocketraman
06/06/2022, 2:12 PMCould not resolve io.kvision:kvision-server-ktor:<kvision-version>
. Same build works fine with 5.8.2. Any ideas?João Paulo Figueira
06/08/2022, 12:42 PMTab
on a TabPanel
? I want to persist the `TabPanel`’s state between `bind`s.Rodrigo Silva
06/11/2022, 12:28 PMAdam S
06/18/2022, 7:09 PMwindow.location.href
, but now I need to set up some sort of 'proxy' so I can connect when developing locally
I've tried using the dev server option in build.gradle.kts
// build.gradle.kts
...
proxy = mutableMapOf(
"/ws" to mapOf(
"target" to "<http://localhost:12080>",
"secure" to false,
"ws" to true,
"changeOrigin" to true,
),
),
but I get an error in the application logs
<i> [webpack-dev-server] [HPM] Upgrading to WebSocket
<e> [webpack-dev-server] [HPM] WebSocket error: Error: read ECONNRESET
<e> at TCP.onStreamRead (node:internal/stream_base_commons:220:20) {
<e> errno: -4077,
<e> code: 'ECONNRESET',
<e> syscall: 'read'
<e> }
In the browser it tries to connect, but gets an Invalid frame header
error.
I saw that the KVision examples set up websockets proxys, but they look the same as what I have. What else do I need?
KVision 5.10.1, Kotlin/JS 1.7.0, more details hereRobert Jaros
06/19/2022, 8:43 AMJoão Paulo Figueira
06/24/2022, 10:29 AM[webpack-cli] TypeError: cli.isMultipleCompiler is not a function
Any insights?Robert Jaros
06/30/2022, 1:42 PMbootstrap-fileinput 5.5.0
breaks projects using kvision-bootstap-upload
module. Temporary workaround:
rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin> {
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension>().apply {
resolution("bootstrap-fileinput", "5.2.8")
}
}
Robert Jaros
06/30/2022, 1:45 PMRobert Jaros
07/01/2022, 6:34 AMRobert Jaros
07/12/2022, 5:12 AMRobert Jaros
07/15/2022, 1:45 PMJoão Paulo Figueira
07/19/2022, 9:15 AMRobert Jaros
08/09/2022, 6:23 AMhttps://www.youtube.com/watch?v=-mua_TAE-ww▾
Robert Jaros
08/10/2022, 10:44 AMashmelev
08/11/2022, 4:32 PMdataUpdateOnEdit = true
mode I get a (rather lengthy) Uncaught exception...
in the browser console which seems to indicate an issue when setting data:
<redacted>....refreshActiveData@http://localhost:8080/web/main.bundle.js:2:1490426\n_setDataActual@http://localhost:8080/web/main.bundle.js:2:1485115\n2995/setData/<@http://localhost:8080/web/main.bundle.js:2:1484530\nsetData@http://localhost:8080/web/main.bundle.js:2:1484442.....<redacted>
The data source for the Tabulator is declared as:
val organizations: ObservableList<OrganizationExch> = observableListOf()
and OrganizationExch
is declared as
@Serializable
data class OrganizationExch(@Id var extId: String,
var name: String,
var description: String? = null,
var webUrl: String? = null,
var imageUrl: String? = null,
var theme: String? = null,
var createdAt: OffsetDateTime? = null,
var updatedAt: OffsetDateTime? = null)
[NOTE: I am trying to edit webUrl
in my tests]
The data originates from a List
on the KVision back-end (SpringBoot) and I convert it into a MutableList<OrganizationExch>
before synch (probably unnecessary):
organizations.syncWithList(organizationService.getOrganizations().toMutableList())
I am clearly missing something..... can you help?Francis Mariano
08/16/2022, 12:53 PMashmelev
08/21/2022, 12:15 AMdata
) as well as Labels, but, while the Cart paints properly the first time it seems indifferent to updates of the ObservableLists.Robert Jaros
08/25/2022, 6:49 PMnapperley
09/01/2022, 1:31 AMnapperley
09/01/2022, 1:31 AMRobert Jaros
09/01/2022, 5:03 AMnapperley
09/04/2022, 3:57 AM