Skip to content

Commit 22e41cf

Browse files
authored
fix: doc @useLoader and suspend-react ref
adds reference to suspend-react
1 parent 37afe37 commit 22e41cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/API/hooks.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,13 @@ function App() {
188188
}
189189
```
190190
191+
> [!TIP]
192+
> Internally, `useLoader` relies on [`suspend-react`](https://github.com/pmndrs/suspend-react).
193+
191194
> [!NOTE]
192195
> Assets loaded with useLoader are cached by default. The urls given serve as cache-keys. This allows you to re-use loaded data everywhere in the component tree.
193196
194-
> [!NOTE]
197+
> [!WARNING]
195198
> Be very careful with mutating or disposing of loaded assets, especially when you plan to re-use them. Refer to the automatic disposal section in the API.
196199
197200
### Loader extensions

0 commit comments

Comments
 (0)