• Big Chungus

    Big Chungus

    2 years ago
    How do i switch to store thread in common module with coroutines?
    Big Chungus
    1 replies
    Copy to Clipboard
  • Nikky

    Nikky

    2 years ago
    is there any contract stating that dispatch has to return the transformed state ? because to me the
    redux.Store
    api looks like it could return anything
    Nikky
    p
    2 replies
    Copy to Clipboard
  • Nikky

    Nikky

    2 years ago
    when using kotlin-redux on js is there any point in adding a line like that ?
    js("if(window.__REDUX_DEVTOOLS_EXTENSION__ )window.__REDUX_DEVTOOLS_EXTENSION__ ();else(function(f){return f;});")
    https://github.com/lawik123/kotlin-poc-frontend-react-redux/blob/44eceb985a6871a2c13e6c5487777d55acf64bfb/src/main/kotlin/nl/lawik/poc/frontend/reactredux/Index.kt#L17
    Nikky
    p
    3 replies
    Copy to Clipboard
  • Big Chungus

    Big Chungus

    2 years ago
    Getting the following on windows:
    Could not find org.reduxkotlin:lib-win:0.3.1.
    Searched in the following locations:
      - <https://jcenter.bintray.com/org/reduxkotlin/lib-win/0.3.1/lib-win-0.3.1.pom>
      - <https://repo.maven.apache.org/maven2/org/reduxkotlin/lib-win/0.3.1/lib-win-0.3.1.pom>
      - file:/C:/Users/mpetuska/.m2/repository/org/reduxkotlin/lib-win/0.3.1/lib-win-0.3.1.pom
      - <https://kotlin.bintray.com/kotlin-js-wrappers/org/reduxkotlin/lib-win/0.3.1/lib-win-0.3.1.pom>
      - <https://dl.bintray.com/kotlin/kotlinx.html/org/reduxkotlin/lib-win/0.3.1/lib-win-0.3.1.pom>
    Am I missing something?
    Big Chungus
    p
    +1
    7 replies
    Copy to Clipboard
  • Big Chungus

    Big Chungus

    2 years ago
    Anyone tried to use reduxkotlin on native? I keep getting
    kotlin.native.concurrent.InvalidMutabilityException: mutation attempt of frozen kotlin.native.internal.Ref
    when trying to createStore
    Big Chungus
    p
    3 replies
    Copy to Clipboard
  • Nikky

    Nikky

    2 years ago
    i have no idea how i did not run into this before..
    java.lang.IllegalStateException: You may not call the store from a thread other than the thread on which it was created.
    but how would be the easiest way to lets say.. make sure that this does not happen by using the same thread / coroutine context ?
    Nikky
    c
    +2
    9 replies
    Copy to Clipboard
  • tim

    tim

    2 years ago
    Hey folks how are others storing their state? For example, are you using a
    data class
    , a Map, or something else entirely? I'm coming from the JS/TS ecosystem where libraries like ReduxToolkit/Immutable.JS make this a straightforward decision but I'm curious what 'best practice' looks like here in kotlin-land 🙏 In my first attempt I'm using data classes but finding that only 1 or 2 layers of nesting starts to cause issues in my reducers. So i could either go with Maps and forget data classes or reduce the nesting... or perhaps theres a better way altogether?
    tim
    Big Chungus
    5 replies
    Copy to Clipboard
  • Big Chungus

    Big Chungus

    2 years ago
    Any ETA on when reduxkotlin will be published for windows? v0.4.0 still does not resolve windows artefact
    Big Chungus
    p
    3 replies
    Copy to Clipboard
  • p

    Patrick Jackson

    2 years ago
    Redux-Kotlin v0.4.0 is available! This updates to kotlin 1.3.70. Redux-kotlin-thunk is also updated to v0.4.0. Thunk has a breaking change where thunks are now a typealias, rather than an interface. Kotlin 1.3.70 fixed a bug that allows use of typealias and closer match to JS thunk api.
    p
    1 replies
    Copy to Clipboard
  • Robert Jaros

    Robert Jaros

    2 years ago
    It's already 1.3.71 available
    Robert Jaros
    1 replies
    Copy to Clipboard