Skip to content

Commit a832ae5

Browse files
committed
Update docs.
1 parent 98c9dd8 commit a832ae5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

site/public/api/filetree.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,8 @@ addDependency(requiredBy: string, requiring: string)
117117
```
118118

119119
Makes changes to file at `requiring` invalidate module at `requiredBy`.
120+
121+
**NOTE:** You should *not* usually need to call this directly.
122+
It's used internally by [useTree](module-hooks.md#usetree).
123+
It's only made public so you can use it for *non-module* files.
124+
This allows you to invalidate a module when a data file changes.

0 commit comments

Comments
 (0)