Title: Client dep scan misses `better-auth/react` from `void/client`, causing a reload on first load · Issue #844 · voidzero-dev/void · GitHub
Open Graph Title: Client dep scan misses `better-auth/react` from `void/client`, causing a reload on first load · Issue #844 · voidzero-dev/void
X Title: Client dep scan misses `better-auth/react` from `void/client`, causing a reload on first load · Issue #844 · voidzero-dev/void
Description: On a cold Vite cache, the client's startup scan doesn't find better-auth/react. Void's React client imports it for createAuthClient from void/client. The first page load then finds it late, re-optimizes, and reloads the page: vite:deps n...
Open Graph Description: On a cold Vite cache, the client's startup scan doesn't find better-auth/react. Void's React client imports it for createAuthClient from void/client. The first page load then finds it late, re-opti...
X Description: On a cold Vite cache, the client's startup scan doesn't find better-auth/react. Void's React client imports it for createAuthClient from void/client. The first page load then finds it l...
Opengraph URL: https://github.com/voidzero-dev/void/issues/844
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Client dep scan misses `better-auth/react` from `void/client`, causing a reload on first load","articleBody":"On a cold Vite cache, the client's startup scan doesn't find `better-auth/react`. Void's React client imports it for `createAuthClient` from `void/client`. The first page load then finds it late, re-optimizes, and reloads the page:\n\n```\nvite:deps new dependencies found: better-auth/react\n(client) optimized dependencies changed. reloading\n```\n\nThe client scan finds the app's own `better-auth/client/plugins` but not `better-auth/react`, since that import is inside Void's own code. This is the same kind of gap as #599, where `void/pages-prefetch` was found late.\n\n**Repro:** in an app that uses `createAuthClient` from `void/client`, run `rm -rf node_modules/.vite && DEBUG=vite:deps vp dev`, then open any page.\n\n**Ask:** pre-bundle `better-auth/react` for the client when auth is used, the way #599 added `void/pages-prefetch` to the client's `include`.\n\n**Environment:** Void 1.9.1, `@void/react` 1.9.1, Vite+ core 1.6.0, Better Auth 1.7.22.\n","author":{"url":"https://github.com/karthickeyan-dev","@type":"Person","name":"karthickeyan-dev"},"datePublished":"2026-11-16T04:05:19Z","url":"https://github.com/voidzero-dev/void/issues/844"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f56d6933-b80b-41a9-7979-8648940ed47e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D6B8:37C15F:10A28B:169C1B:6AFBA8ED |
| html-safe-nonce | e4aa3508014c28fb2aa0e67fa28a3e1e0f2f4d4f5ef10b6ccaec82e3148d6726 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkI4OjM3QzE1RjoxMEEyOEI6MTY5QzFCOjZBRkJBOEVEIiwidmlzaXRvcl9pZCI6IjQ2MTUwNTk2NTY5MDM3MzE0MzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ed6ea1cc6a66769c1a7748474c4e5a8e3e745462cd17968646f3ca654087021e |
| hovercard-subject-tag | issue:6413920723 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/voidzero-dev/void/844/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7b130f915c6aa756be8689eb0dbac5df7d2d7369b9aafe7f12217943e9aa6d0f/voidzero-dev/void/issues/844 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7b130f915c6aa756be8689eb0dbac5df7d2d7369b9aafe7f12217943e9aa6d0f/voidzero-dev/void/issues/844 |
| og:image:alt | On a cold Vite cache, the client's startup scan doesn't find better-auth/react. Void's React client imports it for createAuthClient from void/client. The first page load then finds it late, re-opti... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | karthickeyan-dev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 03e5090f0cea887cafa036e3af34d7c668d83b5e9e9e03df72a90efb49b69cdf |
| turbo-cache-control | no-preview |
| go-import | github.com/voidzero-dev/void git https://github.com/voidzero-dev/void.git |
| octolytics-dimension-user_id | 149750581 |
| octolytics-dimension-user_login | voidzero-dev |
| octolytics-dimension-repository_id | 1164437080 |
| octolytics-dimension-repository_nwo | voidzero-dev/void |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1164437080 |
| octolytics-dimension-repository_network_root_nwo | voidzero-dev/void |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 41f00295b9a35dca977890ab83b22788ab211dc8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width