piranha / pump

Pump your REACTive app with fuel
Eclipse Public License 1.0
75 stars 5 forks source link

getInitialState not firing #9

Closed geraldodev closed 10 years ago

geraldodev commented 10 years ago

I'm playing with examples from documentation and It appears that getInitialState is not firing:

https://gist.github.com/geraldodev/7614173

The liked state starts with false. In chrome the :get-initial-state function is not recongnized at runtime.

piranha commented 10 years ago

It should be other way around:

(defr LikeButton
  :get-initial-state #(identity {:liked true})

  [component props state]
  [:p "qwe"])
geraldodev commented 10 years ago

errr :(

Thanx!