Closed arctic-hen7 closed 2 years ago
Note that the name of the reactive version of state is now specified with the #[rx_alias = "..."]
helper macro, and this provides a simple type alias. Due to greater type linkage, the underlying hidden types need never be interacted with.
CI appears to be broken at the moment. Along with #238, I am merging this without test validation, and any errors will be sorted out in a separate PR. (I'll try to fix CI on main
.)
This removes the attribute macro
#[make_rx]
and replaces it entirely with#[derive(ReactiveState)]
, which achieves the exact same ends, using a derive macro. This allows for more sensible placement of the#[rx(nested)]
helper macro over nested fields, while also matching neatly with the newUnreactiveState
derive macro. Overall, this contributes to improved ergonomics.This of course involves several breaking changes.