ReactX<State, Event> extension
Methods
-
react<Value>({required Value value(State state), Equals<Value>? equals, bool skipInitialValue = true, required void effect(Value value, Dispatch<Event> dispatch)})
→ System<State, Event>
-
Add
effect
triggered by reacting to state's partial value change.
-
reactLatest<Value>({required Value value(State state), Equals<Value>? equals, bool skipInitialValue = true, required Disposer? effect(Value value, Dispatch<Event> dispatch)})
→ System<State, Event>
-
Add
effect
triggered by react state's partial value change,
it will cancel previous effect when new effect triggered or system
disposal.
-
reactState({Equals<State>? equals, bool skipInitialState = true, required void effect(State state, Dispatch<Event> dispatch)})
→ System<State, Event>
-
Add
effect
triggered by reacting to whole state change.