Skip to content

v0.8.3

Choose a tag to compare

@github-actions github-actions released this 15 Sep 21:14
· 37 commits to main since this release
22eb145

Added

  • Notify mode guide. A notify component re-renders from the server instead of
    the broadcast payload, and filter_callback can remove it from a filtered
    list. See Notify Mode.
  • Notify wrappers fill in the component name and record id, so
    live_wrapper_options only needs strategy: :notify.
  • ReactiveComponent.skip_own_broadcasts: the component that ran a
    live_action ignores the broadcast it caused and keeps its optimistic
    update. Off by default; override per component with live_wrapper_options.
  • subscribes_to ..., fields: limits a component's update broadcasts to
    changes in the listed columns, like rebuilds_on ..., fields: on entities.

Fixed

  • Notify components only react to changes to their own record. Before, every
    notify component on a shared stream requested a re-render on any change.
  • A destroyed record's notify component is removed instead of staying on the
    page.
  • filter_callback runs on every notify request, not only for components
    that declare client state.
  • The configuration docs set Channel options inside to_prepare; the
    previous initializer example raised NameError.

What's Changed

Full Changelog: v0.8.2...v0.8.3