paf31 / purescript-thermite

A simple PureScript wrapper for React
MIT License
350 stars 55 forks source link

effectful initial state #92

Open martyall opened 7 years ago

martyall commented 7 years ago

This pr is a breaking change that allows for effectful actions while retrieving initial state for the component.

martyall commented 7 years ago

I just noticed all the package-lock changes made it in, should I take them out?

paf31 commented 7 years ago

That file should just be deleted actually. Would you mind?

martyall commented 7 years ago

done

paf31 commented 6 years ago

Thanks! I plan to merge this as a breaking change along with updates for the latest react package.

athanclark commented 5 years ago

If I'm not mistaken, in React v16.x, there is no ability to create a component without an immediate, pure initial state - https://pursuit.purescript.org/packages/purescript-react/6.1.0/docs/React#t:ReactSpecRequired - ping @blinky3713