purescript-thermite
purescript-thermite copied to clipboard
`createReactSpec` type too restrictive.
In my experience, having to supply the initial state without access to any effects while calling createReactSpec
is a bit to restrictive. Given that the ReactSpec
has a getInitialState
field which allows effects, should't we allow the same opportunity here?
Sounds useful. Would you like to make a PR and we can compare?
Thanks!
sure, should be easy
Here's a pr with breaking changes, but maybe we can start here
https://github.com/paf31/purescript-thermite/compare/master...blinky3713:effectful-initial-state
Thanks! This would be a breaking change, but maybe it's better this way. Could you please open a PR?