Skip to content

Commit 8828505

Browse files
committed
fix action type in README
1 parent a2df129 commit 8828505

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ pkg/
66

77

88
dist/
9+
10+
11+
.DS_Store

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ pub enum ActionOp {
9898
}
9999

100100
impl RespoAction for ActionOp {
101+
type Intent = (); // Intent is optional, it's for async actions.
101102
fn states_action(a: RespoUpdateState) -> Self {
102103
Self::StatesChange(a)
103104
}
@@ -126,7 +127,6 @@ struct App {
126127

127128
impl RespoApp for App {
128129
type Model = Store;
129-
type Action = ActionOp;
130130

131131
fn get_store(&self) -> Rc<RefCell<Self::Model>> {
132132
self.store.to_owned()

0 commit comments

Comments
 (0)