Hello everyone,
I have a problem with Ktolin/JS React and redux.
when calling
useSelector
for a property of a dataclass, that I use as store, i get the following error:
react-dom.development.js:26923 Uncaught TypeError: queryState.get_currentQuery_smfme0_k$ is not a function at Welcome$lambda$lambda
But looking at the underlying code, this should work because it is properly generated and added(?) to the ptototype:
protoOf(QueryState).get_currentQuery_smfme0_k$ = function () {
return this.currentQuery_1;
};
Seems like this is some kind of method wrapper generated by Kotlin/JS.
Does anyone know how I can circumvent the generation of this wrappers or why this is failing at all?
Because calling it outside of
useSelector
works just fine. 🤔
Used versions:
Kotlin MPP: 1.8.21
Kotlin Wrapper Version: 1.0.0-pre.543