Skip to content

Conversation

brenelz
Copy link
Contributor

@brenelz brenelz commented Oct 21, 2025

Summary by CodeRabbit

  • Refactor
    • Consolidated internal module imports to improve code organization and maintainability with no impact to user-facing functionality.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 21, 2025

Walkthrough

Consolidates imports in the Solid Start client entry point, combining StartClient and hydrateStart imports from a unified module source (@tanstack/solid-start/client) instead of separate modules. No runtime behavior changes.

Changes

Cohort / File(s) Summary
Import consolidation
packages/solid-start/src/default-entry/client.tsx
Unified StartClient and hydrateStart imports into a single module (@tanstack/solid-start/client), replacing separate imports from @tanstack/solid-start/client and @tanstack/start-client-core/client

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested labels

package: start-client-core

Suggested reviewers

  • lachlancollins

Poem

🐰 With ears held high, I spot the way,
One import path, no more delay!
StartClient and hydrate unite,
Consolidated code—oh what delight!

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The PR title "fix: solid start error outside monorepo" clearly describes the primary objective being addressed in the changeset. The code change—consolidating imports of StartClient and hydrateStart into a single module—directly implements a fix for the solid start error that occurs when the package is used outside a monorepo context. The title is specific and meaningful, accurately conveying what problem is being solved rather than just listing technical details. A teammate scanning the history would immediately understand that this PR addresses an issue with solid start's behavior in non-monorepo environments.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 12f0e8c and c05a708.

📒 Files selected for processing (1)
  • packages/solid-start/src/default-entry/client.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Use TypeScript in strict mode with extensive type safety across the codebase

Files:

  • packages/solid-start/src/default-entry/client.tsx
packages/{*-start,start-*}/**

📄 CodeRabbit inference engine (AGENTS.md)

Name and place Start framework packages under packages/-start/ or packages/start-/

Files:

  • packages/solid-start/src/default-entry/client.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Preview
  • GitHub Check: Test
🔇 Additional comments (1)
packages/solid-start/src/default-entry/client.tsx (1)

2-2: Fix improves external resolution but consolidation is incomplete

The consolidation in the default-entry file correctly resolves the external usage issue. However, the re-export chain through packages/solid-start-client/src/index.tsx still imports hydrateStart from @tanstack/start-client-core/client, which should also be consolidated for a complete fix.

Recommended follow-up:
Update packages/solid-start-client/src/index.tsx (line 2) to consolidate the hydrateStart import source, ensuring the entire stack uses consistent internal imports rather than spanning across separate package boundaries.

The current fix works for external usage, but for full monorepo isolation and maintainability, both the default-entry and the underlying client package should use aligned import sources.


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

Comment @coderabbitai help to get the list of available commands and usage tips.

@nx-cloud
Copy link

nx-cloud bot commented Oct 21, 2025

View your CI Pipeline Execution ↗ for commit c05a708

Command Status Duration Result
nx affected --targets=test:eslint,test:unit,tes... ✅ Succeeded 3m 28s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 8s View ↗

☁️ Nx Cloud last updated this comment at 2025-10-21 14:13:33 UTC

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 21, 2025

More templates

@tanstack/arktype-adapter

npm i https://pkg.pr.new/TanStack/router/@tanstack/arktype-adapter@5566

@tanstack/directive-functions-plugin

npm i https://pkg.pr.new/TanStack/router/@tanstack/directive-functions-plugin@5566

@tanstack/eslint-plugin-router

npm i https://pkg.pr.new/TanStack/router/@tanstack/eslint-plugin-router@5566

@tanstack/history

npm i https://pkg.pr.new/TanStack/router/@tanstack/history@5566

@tanstack/nitro-v2-vite-plugin

npm i https://pkg.pr.new/TanStack/router/@tanstack/nitro-v2-vite-plugin@5566

@tanstack/react-router

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-router@5566

@tanstack/react-router-devtools

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-router-devtools@5566

@tanstack/react-router-ssr-query

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-router-ssr-query@5566

@tanstack/react-start

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-start@5566

@tanstack/react-start-client

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-start-client@5566

@tanstack/react-start-server

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-start-server@5566

@tanstack/router-cli

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-cli@5566

@tanstack/router-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-core@5566

@tanstack/router-devtools

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-devtools@5566

@tanstack/router-devtools-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-devtools-core@5566

@tanstack/router-generator

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-generator@5566

@tanstack/router-plugin

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-plugin@5566

@tanstack/router-ssr-query-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-ssr-query-core@5566

@tanstack/router-utils

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-utils@5566

@tanstack/router-vite-plugin

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-vite-plugin@5566

@tanstack/server-functions-plugin

npm i https://pkg.pr.new/TanStack/router/@tanstack/server-functions-plugin@5566

@tanstack/solid-router

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-router@5566

@tanstack/solid-router-devtools

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-router-devtools@5566

@tanstack/solid-router-ssr-query

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-router-ssr-query@5566

@tanstack/solid-start

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-start@5566

@tanstack/solid-start-client

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-start-client@5566

@tanstack/solid-start-server

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-start-server@5566

@tanstack/start-client-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-client-core@5566

@tanstack/start-plugin-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-plugin-core@5566

@tanstack/start-server-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-server-core@5566

@tanstack/start-static-server-functions

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-static-server-functions@5566

@tanstack/start-storage-context

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-storage-context@5566

@tanstack/valibot-adapter

npm i https://pkg.pr.new/TanStack/router/@tanstack/valibot-adapter@5566

@tanstack/virtual-file-routes

npm i https://pkg.pr.new/TanStack/router/@tanstack/virtual-file-routes@5566

@tanstack/zod-adapter

npm i https://pkg.pr.new/TanStack/router/@tanstack/zod-adapter@5566

commit: c05a708

@brenelz brenelz merged commit a3e5188 into TanStack:main Oct 21, 2025
6 checks passed
@brenelz brenelz deleted the fix-error-outside-monorepo branch October 21, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants