Skip to content

Commit

Permalink
Reducers can return actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Jun 9, 2023
1 parent c4d0331 commit cca2cf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/redux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ use crate::*;
pub fn redux<
V: View,
A: 'static,
A2: 'static,
S: 'static,
D: Fn() -> S + 'static,
F: Fn(&S) -> V + 'static,
R: Fn(&mut S, &A) + 'static + Clone,
R: Fn(&mut S, &A) -> A2 + 'static + Clone,
>(
initial: D,
reducer: R,
Expand Down

0 comments on commit cca2cf0

Please sign in to comment.