| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| 1.11.0 source code.tar.gz | 2026-05-25 | 315.6 kB | |
| 1.11.0 source code.zip | 2026-05-25 | 378.9 kB | |
| README.md | 2026-05-25 | 1.6 kB | |
| Totals: 3 Items | 696.1 kB | 0 | |
🍜 1.11.0
See the haddocks, miso repo and org for more information on how to use props in miso.
✨ Highlights
The major feature added in 1.11.0 is React-style props. This allows child Component to inherit parent state changes automatically (children will re-render on props changes made by the parent). See the miso-props repo for an example. The core types are now parameterized by a new props type variable. Props are read-only and accessible via the view :: props -> model -> View model action function, along with read-only access in update via getProps :: MonadReader props m => m props.
To use props, use the mountWithProps function.
The core miso DSL has been extended as shown below.
:::haskell
data Component parent props model action
data Effect parent props model action
data ComponentInfo parent props
data ComponentState parent props model action
view :: props -> model -> View model action
getProps :: MonadReader props m => m props
What's Changed
- Add
mailAncestorsfunction. by @dmjio in https://github.com/dmjio/miso/pull/1519 - Initial commit of typesafe React props. by @dmjio in https://github.com/dmjio/miso/pull/1518
Full Changelog: https://github.com/dmjio/miso/compare/1.10.0...1.11.0