fix(create): upgrade to Vite 8 and fix useStore selector in AI add-on #428
Mergedjherrmerged 1 commit into
main fromrefs/pull/428/headmerged by schiller-manuel(GitHub profile, opens in a new tab) Sign in to join this conversation.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID:
4f9aaedb-eaf8-4545-8c5b-39e4df8dd2a6📥 Commits
Reviewing files that changed from the base of the PR and between 44ef1ad64a8d475e39f78033b2186b262143a741 and b549f9595726cf8339803a592c20295dab18bdfe.
📒 Files selected for processing (4)
.changeset/vite8-usestore-fix.mdpackages/create/src/frameworks/react/add-ons/ai/assets/src/components/demo-AIAssistant.tsxpackages/create/src/frameworks/react/project/base/package.jsonpackages/create/src/frameworks/react/project/base/vite.config.ts.ejs📝 Walkthrough
Walkthrough#
Upgrades Vite from 7.3.1 to 8.0.0 and updates related React tooling. Migrates from the
vite-tsconfig-pathsplugin to Vite's nativeresolve.tsconfigPathsconfiguration option. Fixes AI assistant component'suseStorehook to explicitly pass a selector function.Changes#
.changeset/vite8-usestore-fix.mdvite-tsconfig-pathsplugin replacement, anduseStoreusage correction in AI add-on.packages/create/src/frameworks/react/project/base/package.json,packages/create/src/frameworks/react/project/base/vite.config.ts.ejsviteto^8.0.0and@vitejs/plugin-reactto^6.0.1; removedvite-tsconfig-pathsdependency; migrated from explicit plugin invocation to Vite's built-inresolve.tsconfigPathsconfiguration; reformattedpnpm.onlyBuiltDependenciesarray.packages/create/src/frameworks/react/add-ons/ai/assets/src/components/demo-AIAssistant.tsxuseStoreinvocation to explicitly pass selector function:useStore(showAIAssistant, (state) => state)for correct state mapping.Estimated code review effort#
🎯 2 (Simple) | ⏱️ ~12 minutes
Poem#
🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)#
✅ Passed checks (2 passed)
✨ Finishing Touches
📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share