unabridged / motion

Reactive frontend UI components for Rails in pure Ruby
https://github.com/unabridged/motion
MIT License
697 stars 19 forks source link

Inclusive marshal_dump For Component Attributes #118

Closed bert-mccutchen closed 3 years ago

bert-mccutchen commented 3 years ago

WHAT

This change is an attempt to create an inclusive dump for component attributes.

WHY

This would allow for custom attributes that can be ignored by motion. By doing so, we gain these benefits:

  1. Better gem compatibility.
  2. More performant components by using instance variables for storing results that do not need to be saved to the state.