Skip to content

Commit 60436a8

Browse files
jbruniyyx990803
authored andcommitted
Fix cache key getter function name at en/caching.md (vuejs#134)
1 parent 741c3bd commit 60436a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en/caching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default {
6969

7070
Note that cache-able component **must also define a unique `name` option**. With a unique name, the cache key is thus per-component: you don't need to worry about two components returning the same key.
7171

72-
The key returned from `serverCacheKey` should contain sufficient information to represent the shape of the render result. The above is a good implementation if the render result is solely determined by `props.item.id`. However, if the item with the same id may change over time, or if render result also relies on another prop, then you need to modify your `getCacheKey` implementation to take those other variables into account.
72+
The key returned from `serverCacheKey` should contain sufficient information to represent the shape of the render result. The above is a good implementation if the render result is solely determined by `props.item.id`. However, if the item with the same id may change over time, or if render result also relies on another prop, then you need to modify your `serverCacheKey` implementation to take those other variables into account.
7373

7474
Returning a constant will cause the component to always be cached, which is good for purely static components.
7575

0 commit comments

Comments
 (0)