You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: resources/js/Pages/prefetching.jsx
+49-24Lines changed: 49 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -229,8 +229,9 @@ export default function () {
229
229
/>
230
230
231
231
<P>
232
-
To make this even easier, Inertia offers a prefetch helper. This helper provides some additional insight into
233
-
the request, such as the last updated timestamp and if the request is currently prefetching.
232
+
Inertia also provides a <Code>usePrefetch</Code> hook that allows you to track the prefetch state for the
233
+
current page. It returns information about whether the page is currently prefetching, has been prefetched, when it was last updated, and a <Code>flush</Code> method
0 commit comments