Skip to content

Commit c48a604

Browse files
committed
Add another RestAPI getter example
1 parent 066e5e9 commit c48a604

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/rest-api-example/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ Project.actions.fetchAll()
210210
flux.observe(Project.getters.entityMap, projectMap => {
211211
console.log('project rest api cache changed', projectMap.toJS())
212212
})
213+
214+
flux.observe(Project.getters.byId(123), project123 => {
215+
console.log('project with id=123 changed', project123)
216+
})
213217
```
214218

215219

0 commit comments

Comments
 (0)