github purescript-halogen/purescript-halogen v1.0.0

latest releases: v7.0.0, v6.1.3, v6.1.2...
7 years ago

Many breaking changes since v0.12, including:

  • Components now don't reveal their state in their type signatures. This has many knock on implications - a major one being a drastic simplification of types for parent components (no more Coproducts!)
  • peek is gone in favour of a dedicated mechanism for raising / listening to messages
  • Components can have "input values" now, that allow data to be passed down when a parent re-renders
  • Rendering is more efficient, due to patching only taking place at the component level
  • No more virtual-dom dependency required, by default a native PS virtual dom is used
  • The HTML type that components render is now parameterised to potentially allow for non-HTML components (React Native, for example - although no driver is provided for this)
  • The non-indexed HTML DSL is no longer provided
  • EventSource subscriptions have been overhauled. Components can also choose to unsubscribe now, and will automatically unsubscribe when finalized.
  • refs in the HTML no longer raise an event, but are accessed through the HalogenM DSL
  • Component lifecycle handler ordering has been made predictable

See the updated guide!

Don't miss a new purescript-halogen release

NewReleases is sending notifications on new releases.