We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@inertiajs/core
@inertiajs/react
From a layout, I'm trying to call prefetch programmatically but it results in an error.
useEffect(() => { router.prefetch( "/users", { method: "get", data: { page: 2 } }, { cacheFor: "1m" } ); }, []);
Uncaught (in promise) TypeError: n.get() is undefined getHeaders request.ts:137 send request.ts:49 send requestStream.ts:18 prefetch router.ts:220 v prefetched.ts:36 add prefetched.ts:35 prefetch router.ts:217 default DefaultLayout.tsx:23 default DefaultLayout.tsx:22 React 13 workLoop scheduler.development.js:266 flushWork scheduler.development.js:239 performWorkUntilDeadline scheduler.development.js:533 scheduler chunk-QANAYWAR.js:405 scheduler chunk-QANAYWAR.js:453 __require chunk-WOOG5QLI.js:12 scheduler chunk-QANAYWAR.js:465 __require chunk-WOOG5QLI.js:12 React 2 __require chunk-WOOG5QLI.js:12 dom React __require chunk-WOOG5QLI.js:12 dom React __require chunk-WOOG5QLI.js:12 <anonymous> react-dom_client.js:38 ```
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Versions:
@inertiajs/core
version: beta.2@inertiajs/react
version: beta.2Describe the problem:
From a layout, I'm trying to call prefetch programmatically but it results in an error.
The text was updated successfully, but these errors were encountered: