piranha/pump

getInitialState not firing

geraldodev opened this issue · 2 comments

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.

It should be other way around:

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

  [component props state]
  [:p "qwe"])

errr :(

Thanx!