Skip to content

Commit

Permalink
prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
delbaoliveira committed Oct 29, 2024
1 parent 9a4a041 commit 2348c34
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/02-app/02-api-reference/01-directives/use-cache.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ When defining multiple caching behaviors in the same route or component tree, if
2. If no cache profile exists, then the shortest profile times from all inner `use cache` calls applies to this `use cache`. If there are no inner `use cache`'s then the default is used
3. Inner caches at two levels deep do not affect the outer cache since they have already provided their duration to their parent.


For example, if you add the `use cache` directive to your page, without specifying a cache profile, the default cache profile will be applied implicitly (`cacheLife(”default”)`). If a component imported into the page also uses the `use cache` directive with its own cache profile, the outer and inner cache profiles are compared, and shortest duration set in the profiles will be applied.

```tsx filename="app/components/parent.tsx" highlight={5,6}
Expand Down

0 comments on commit 2348c34

Please sign in to comment.