Skip to content

Commit 7706465

Browse files
committed
Add cache, cacheSignal, and captureOwnerStack to the APIs overview
1 parent 383a1e9 commit 7706465

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/content/reference/react/apis.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ In addition to [Hooks](/reference/react/hooks) and [Components](/reference/react
1515
* [`memo`](/reference/react/memo) lets your component skip re-renders with same props. Used with [`useMemo`](/reference/react/useMemo) and [`useCallback`.](/reference/react/useCallback)
1616
* [`startTransition`](/reference/react/startTransition) lets you mark a state update as non-urgent. Similar to [`useTransition`.](/reference/react/useTransition)
1717
* [`act`](/reference/react/act) lets you wrap renders and interactions in tests to ensure updates have processed before making assertions.
18+
* [`cache`](/reference/react/cache) lets you cache the result of a data fetch or computation.
19+
* [`cacheSignal`](/reference/react/cacheSignal) lets you know when the `cache()` lifetime is over.
20+
* [`captureOwnerStack`](/reference/react/captureOwnerStack) reads the current Owner Stack in development and returns it as a string if available.
1821

1922
---
2023

0 commit comments

Comments
 (0)