Fork me on GitHub
#om
<
2015-08-06
>
sander17:08:35

where do i initialise component state in om.next? (defui C Object (getInitialState [_] v) ...) doesn't work since om.next uses react's class-based interface

sander17:08:34

in js i'd make the constructor call this.setState(v) but it seems like defui doesn't provide access to the constructor

sander17:08:18

@dnolen: does om.next already have a way to do that?

dnolen17:08:55

@sander sorry I’m really not interested in answering specific questions about om.next yet

dnolen18:08:05

if you want to understand you’re going to have to read the source and sort it out

sander18:08:37

@dnolen: understood, i will simple_smile

dnolen18:08:12

there’ll be plenty of things for me to say when it’s fully baked but we’re not there yet

sander21:08:04

(answer to my own question: getInitialState works despite the warnings, and reading defui* is very clarifying)