Skip to content

fix(solid-router): use createResource and Show in Await #3591

New issue

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

Conversation

birkskyum
Copy link
Member

@birkskyum birkskyum commented Feb 27, 2025

We can rely on Solid for this instead of the useAwaited that throw in promises

Copy link

nx-cloud bot commented Feb 27, 2025

View your CI Pipeline Execution ↗ for commit 424e220.

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

☁️ Nx Cloud last updated this comment at 2025-02-27 13:27:25 UTC

Copy link

pkg-pr-new bot commented Feb 27, 2025

Open in Stackblitz

More templates

@tanstack/arktype-adapter

npm i https://pkg.pr.new/@tanstack/arktype-adapter@3591

@tanstack/create-router

npm i https://pkg.pr.new/@tanstack/create-router@3591

@tanstack/directive-functions-plugin

npm i https://pkg.pr.new/@tanstack/directive-functions-plugin@3591

@tanstack/create-start

npm i https://pkg.pr.new/@tanstack/create-start@3591

@tanstack/eslint-plugin-router

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

@tanstack/history

npm i https://pkg.pr.new/@tanstack/history@3591

@tanstack/react-router

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

@tanstack/react-router-with-query

npm i https://pkg.pr.new/@tanstack/react-router-with-query@3591

@tanstack/react-start

npm i https://pkg.pr.new/@tanstack/react-start@3591

@tanstack/react-start-api-routes

npm i https://pkg.pr.new/@tanstack/react-start-api-routes@3591

@tanstack/react-start-client

npm i https://pkg.pr.new/@tanstack/react-start-client@3591

@tanstack/react-start-config

npm i https://pkg.pr.new/@tanstack/react-start-config@3591

@tanstack/react-start-plugin

npm i https://pkg.pr.new/@tanstack/react-start-plugin@3591

@tanstack/react-start-router-manifest

npm i https://pkg.pr.new/@tanstack/react-start-router-manifest@3591

@tanstack/react-start-server

npm i https://pkg.pr.new/@tanstack/react-start-server@3591

@tanstack/react-start-server-functions-client

npm i https://pkg.pr.new/@tanstack/react-start-server-functions-client@3591

@tanstack/react-start-server-functions-fetcher

npm i https://pkg.pr.new/@tanstack/react-start-server-functions-fetcher@3591

@tanstack/react-start-server-functions-handler

npm i https://pkg.pr.new/@tanstack/react-start-server-functions-handler@3591

@tanstack/react-start-server-functions-ssr

npm i https://pkg.pr.new/@tanstack/react-start-server-functions-ssr@3591

@tanstack/router-cli

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

@tanstack/router-core

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

@tanstack/router-devtools

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

@tanstack/router-generator

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

@tanstack/router-plugin

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

@tanstack/router-utils

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

@tanstack/router-vite-plugin

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

@tanstack/server-functions-plugin

npm i https://pkg.pr.new/@tanstack/server-functions-plugin@3591

@tanstack/solid-router

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

@tanstack/start

npm i https://pkg.pr.new/@tanstack/start@3591

@tanstack/start-config

npm i https://pkg.pr.new/@tanstack/start-config@3591

@tanstack/start-server-functions-server

npm i https://pkg.pr.new/@tanstack/start-server-functions-server@3591

@tanstack/valibot-adapter

npm i https://pkg.pr.new/@tanstack/valibot-adapter@3591

@tanstack/virtual-file-routes

npm i https://pkg.pr.new/@tanstack/virtual-file-routes@3591

@tanstack/zod-adapter

npm i https://pkg.pr.new/@tanstack/zod-adapter@3591

commit: 424e220

@birkskyum birkskyum changed the title fix(solid-router) use solid resource and Show in Await fix(solid-router): use solid resource and Show in Await Feb 27, 2025
@birkskyum birkskyum changed the title fix(solid-router): use solid resource and Show in Await fix(solid-router): use createResource and Show in Await Feb 27, 2025
@schiller-manuel schiller-manuel merged commit 87d1d9e into TanStack:main Feb 27, 2025
7 checks passed
@birkskyum birkskyum mentioned this pull request Feb 27, 2025
10 tasks
schiller-manuel pushed a commit that referenced this pull request Mar 1, 2025
This PR introduce support for Solid to be used with TanStack Start.

There are several ongoing refactors that can influence the timing of
when it's most feasible to merge this.

### Status (build and run e2e/solid-start/basic)
- [X] SSR
- [x] API Routes
- [x] Server Functions
- [x] HMR
- [x] Streaming (/stream route)
- [X] Timely hydration

### Ongoing refactors

Refactor to make router packages (aka. client-only features) more
agnostic:
- #3552
- #3540
- #3538
- #3171

Refactor to make start packages (aka. server features) more agnostic:
- #3546 
- #3563 
- #3565 

### Upstream changes to solid-router
- #3592
- #3591
- #3589
- #3616 

### Passing E2E test suites
- [x]  basic
- [x]  website
- [x] scroll-restoration
- [x] server-functions

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Brenley Dueck <[email protected]>
Co-authored-by: Iha Shin <[email protected]>
Co-authored-by: Brenley Dueck <[email protected]>
leesb971204 pushed a commit to leesb971204/router that referenced this pull request Apr 16, 2025
We can rely on Solid for this, so we don't throw in promises
leesb971204 pushed a commit to leesb971204/router that referenced this pull request Apr 16, 2025
This PR introduce support for Solid to be used with TanStack Start.

There are several ongoing refactors that can influence the timing of
when it's most feasible to merge this.

### Status (build and run e2e/solid-start/basic)
- [X] SSR
- [x] API Routes
- [x] Server Functions
- [x] HMR
- [x] Streaming (/stream route)
- [X] Timely hydration

### Ongoing refactors

Refactor to make router packages (aka. client-only features) more
agnostic:
- TanStack#3552
- TanStack#3540
- TanStack#3538
- TanStack#3171

Refactor to make start packages (aka. server features) more agnostic:
- TanStack#3546 
- TanStack#3563 
- TanStack#3565 

### Upstream changes to solid-router
- TanStack#3592
- TanStack#3591
- TanStack#3589
- TanStack#3616 

### Passing E2E test suites
- [x]  basic
- [x]  website
- [x] scroll-restoration
- [x] server-functions

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Brenley Dueck <[email protected]>
Co-authored-by: Iha Shin <[email protected]>
Co-authored-by: Brenley Dueck <[email protected]>
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