Skip to content

Commit 638a9aa

Browse files
authored
fix typos and exemplary code
1 parent c3eee1e commit 638a9aa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ export default Ember.Route.extend({
378378

379379
### Think out of the Shoebox
380380

381-
Shoebox gives you great capabilities, but using in in the real app is pretty rough. Have you ever thought that such kind of logic should be done behind the scenes? In a large codebase, defining `fastboot.isFastboot` conditionals can be a daunting task. Furthermore, it generates a lot of boilerplate code, which obscures the solution. Sooner or later coupling with `shoebox` will spread over all routes.
381+
Shoebox gives you great capabilities, but using it in the real app is pretty rough. Have you ever thought that such kind of logic should be done behind the scenes? In a large codebase, defining `fastboot.isFastboot` conditionals can be a daunting task. Furthermore, it generates a lot of boilerplate code, which obscures the solution. Sooner or later coupling with `shoebox` will spread over all routes.
382382

383383
That's why [ember-cached-shoe](https://www.npmjs.com/ember-cached-shoe) was born.
384384

@@ -391,7 +391,9 @@ import Ember from 'ember'
391391

392392
export default Ember.Route.extend({
393393
model() {
394-
this.store.findAll('posts') // called twice, second call serves cached response
394+
// first call in a server makes actual ajax request.
395+
// second call in a browser serves cached response
396+
return this.store.findAll('posts')
395397
}
396398
})
397399
```

0 commit comments

Comments
 (0)