Package space.maxus.flare.react
Interface ReactiveSubscriber<V>
- Type Parameters:
V- The type of the state value.
- All Known Subinterfaces:
ReactiveComponent<V>
- All Known Implementing Classes:
MemoizedReactiveComputable,ReactiveItemProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A subscriber to a reactive state.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonStateChange(V state) Called whenever value inside a reactive state changes
-
Method Details
-
onStateChange
Called whenever value inside a reactive state changes- Parameters:
state- The new state value.- Throws:
ReactiveException- If an error occurs while handling the state change.
-