Skip to content

Commit 6cd0964

Browse files
committed
address pr feedback
1 parent 8d024ae commit 6cd0964

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,10 @@ Shoebox gives you great capabilities, but using it in the real app is pretty rou
418418

419419
One way to abstract the shoebox data storage mechanics is to move the logic into
420420
the Application Adapter as shown below.
421+
421422
```
422423
export default class ApplicationAdapter extends JSONAPIAdapter.extend(
423-
...
424+
// ...snip...
424425
425426
cacheKeyFor([, model, id]) {
426427
return (model.modelName && id) ? `${model.modelName}-${id}` : 'default-store';
@@ -446,8 +447,8 @@ export default class ApplicationAdapter extends JSONAPIAdapter.extend(
446447
result = await super.findRecord(...arguments);
447448
}
448449
449-
// must deep-copy for clean serialization.
450-
return JSON.parse(JSON.stringify(result));
450+
// must deep-copy for clean serialization.
451+
return JSON.parse(JSON.stringify(result));
451452
}
452453
}
453454
```

0 commit comments

Comments
 (0)