https://linen.dev logo
Join Discord
Powered by
# react
  • u

    user

    05/21/2019, 10:18 AM
    I think in the end it's about shipping software
  • u

    user

    05/21/2019, 10:18 AM
    of course we have nothing but opinions to go on ^^
  • u

    user

    05/21/2019, 10:19 AM
    well, that and experience
  • u

    user

    05/21/2019, 10:19 AM
    And biased benchmarks :P
  • u

    user

    05/21/2019, 10:21 AM
    the trick is not to ever pick anything based on benchmarks, unless you know your bottle neck ahead of time and can actually benchmark that ^^
  • u

    user

    05/21/2019, 10:41 AM
    Rōnin Announcement - Restarting Bridge
  • h

    hundreds-dentist-88554

    05/21/2019, 2:18 PM
    just popping in to say that there’s a nice redux alternative with the
    deepstate
    haxelib
  • h

    hundreds-dentist-88554

    05/21/2019, 2:18 PM
    https://github.com/ciscoheat/deepstate/
  • b

    bitter-family-72722

    05/25/2019, 2:42 PM
    I expect some people here will find this interesting (or maybe even want to contribute) https://community.haxe.org/t/wip-d-ts-hx-project/1761
  • s

    stale-house-89863

    06/02/2019, 9:05 PM
    I get a runtime error:
    Uncaught Invariant Violation: Could not find "store" in the context of "Connect(MyView)". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to Connect(MyView) in connect options.
    For:
    Copy code
    ReactDOM.render(jsx('
        <Provider store=${store}>
            <MyView />
        </Provider>
     '), Browser.document.getElementById('app'));
    And I'm not sure why... haxelib:/react-next#1.116.0
  • u

    user

    06/03/2019, 4:46 AM
    What version of redux?
  • u

    user

    06/03/2019, 8:38 AM
    Silly check but does
    store
    hold a value?
  • u

    user

    06/04/2019, 5:19 PM
    How can I render row components of a table like
    Copy code
    class Tr extends ReactComponentOf<TrProps,TrState>
    in a loop?
  • u

    user

    06/04/2019, 5:20 PM
    My first attempt was a to use a function in the parent Table Component but then every state change rerenders the whole table
  • s

    stale-house-89863

    06/04/2019, 6:31 PM
    @User
    gh://github.com/kLabz/haxe-redux#009733ec778dc22bddc88801b74d7e4b1649c9d5
  • s

    stale-house-89863

    06/04/2019, 6:33 PM
    @mysterious-insurance-35540 Yes, store has a value and it seems correct..
    Copy code
    src/Application.hx:11: 
    {dispatch: ƒ, subscribe: ƒ, getState: ƒ, replaceReducer: ƒ, liftedStore: {…}, …}
    dispatch: ƒ e(n)
    getState: ƒ f()
    liftedStore: {dispatch: ƒ, subscribe: ƒ, getState: ƒ, replaceReducer: ƒ, Symbol(observable): ƒ}
    replaceReducer: ƒ (n)
    subscribe: ƒ subscribe(listener)
    Symbol(observable): ƒ ()
    __proto__: Object
  • u

    user

    06/04/2019, 6:49 PM
    I meant what npm version of redux js
  • s

    stale-house-89863

    06/04/2019, 7:38 PM
    Copy code
    "dependencies": {
        "react": "^16.8.6",
        "react-dom": "^16.8.6",
        "react-redux": "^7.0.3",
        "redux": "^4.0.1"
      }
  • u

    user

    06/04/2019, 8:50 PM
    Wow v7 already for react-redux
  • u

    user

    06/04/2019, 8:51 PM
    I'd need to check what version I was using but I think we're not compatible with versions that have less than 10 months or something
  • u

    user

    06/04/2019, 8:55 PM
    Hmm
  • u

    user

    06/04/2019, 8:55 PM
    I don't kniw
  • u

    user

    06/04/2019, 8:55 PM
    I just install the latest :)
  • u

    user

    06/04/2019, 8:55 PM
    Maybe we should add the latest compatible version in the Readme?
  • u

    user

    06/05/2019, 4:39 AM
    I had doubts about 4.0.0 but Redux 4.0.0 + React-Redux 5.0.7 should work
  • u

    user

    06/05/2019, 8:33 PM
    Thanks, Changed to:
    Copy code
    "dependencies": {
        "react-redux": "5.1.1",
        "react": "16.2.0",
        "react-dom": "16.2.0",
        "redux": "3.7.2"
      }
    Which worked for me in the past and get the same error.. Can't track what I'm doing wrong...
  • u

    user

    06/06/2019, 4:37 AM
    Is it because you're connecting the top level component?
  • u

    user

    06/06/2019, 7:30 PM
    Sorry for my ignorance.. but what do you mean? I have a one component which I want to connect to the store:
    Copy code
    @:connect
    class MyView extends ReactComponentOfProps<MyViewProps> {
    ...
    }
  • u

    user

    06/06/2019, 7:41 PM
    MyView being directly below Provider in the component tree may prevent it for being connected
  • u

    user

    06/06/2019, 7:43 PM
    (both Provider and
    @:connect
    will wrap MyView in something.. maybe not in the good order)
1...91011...80Latest