anthonyshort / deku

Render interfaces using pure functions and virtual DOM
https://github.com/anthonyshort/deku/tree/master/docs
3.41k stars 130 forks source link

Question: will onCreate be called on string.render? #341

Closed rstacruz closed 8 years ago

troch commented 8 years ago

It is not, onCreate / onUpdate / onRemove have to do with DOM elements.

rstacruz commented 8 years ago

Aye, makes perfect sense. Might want to note that in the documentation.

anthonyshort commented 8 years ago

That was the original idea, but there could be times when you are just dispatching actions on create. I think for now we'll leave them out and if someone needs them for a solid use-case we can add them in.