Skip to content

Commit 6e4652e

Browse files
authored
Merge pull request #711 from SiAdcock/patch-1
Clarify that loaders are cacheable by default
2 parents ad6cc12 + 1dbea36 commit 6e4652e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/api/loaders.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ A data object shared between the pitch and the normal phase.
125125
cacheable(flag = true: boolean)
126126
```
127127

128-
Make this loader result cacheable. By default it's not cacheable.
128+
By default, loader results are cacheable. Call this method passing `false` to make the loader's result not cacheable.
129129

130130
A cacheable loader must have a deterministic result, when inputs and dependencies haven't changed. This means the loader shouldn't have other dependencies than specified with `this.addDependency`. Most loaders are deterministic and cacheable.
131131

0 commit comments

Comments
 (0)