Fork me on GitHub
#cljsrn
<
2018-07-01
>
carocad09:07:43

@madstap I dont know how exactly is your use case, but one thing that I did was simply set the defaultValue based on the sync value and if the user changes the value then simply sync that one without forcing the input to update since it already contains it in its internal state. That is not entirely nice from the immutable perspective but it gets the job done for me. Hope it helps 🙂

kennytilton16:07:43

Trying to get past the excellent re-natal hello world, I am not having much luck. On my third recommended demo repo, and this is the second that goes like this

~/catlantis $ re-natal use-figwheel
re-natal project needs to be upgraded, please run: re-natal upgrade

kennytilton16:07:40

No problem, repos must be old, just RTE;

~/catlantis $ re-natal upgrade
/usr/local/lib/node_modules/re-natal/re-natal.coffee:1021
    platforms = Object.keys(config.platforms);
                       ^

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>:null:null)

kennytilton16:07:19

Damn the torpedos, keep going…no cats. 😞

kennytilton17:07:59

I will carry on working from the source of those examples so no big deal, but I would be interested in what I might be doing wrong. Kudos, btw, for the great first error above, subsequent bad luck notwithsatnding.

carocad20:07:02

@hiskennyness that error is from the re natal config. Most likely you are missing the platforms key in your config

kennytilton20:07:24

Thx, but looking at catlantis I see in .re-natal.local the following:

{
  "platforms": {
    "ios": {
      "host": "localhost"
    }
  }
}

kennytilton20:07:04

Does that look OK? That’s the full contents, FWIW.

kennytilton20:07:45

btw, I am now happily coding working from the starter example so this is not a show-stopper for me. Thx again.

kennytilton23:07:19

And I must say, kudos again to natal/re-natal for an integration well done.

👍 4