Skip to content

Commit 6d09b12

Browse files
committed
Merge remote-tracking branch 'origin/main' into solid-router-v2-pre
2 parents 5383f41 + 6ad41ea commit 6d09b12

7 files changed

Lines changed: 149 additions & 90 deletions

File tree

docs/start/framework/react/guide/static-prerendering.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ export default defineConfig({
1919
plugins: [
2020
tanstackStart({
2121
prerender: {
22-
// Enable prerendering
23-
enabled: true,
22+
// Switch to true to enable prerendering
23+
enabled: false,
2424

25-
// Enable if you need pages to be at `/page/index.html` instead of `/page.html`
25+
// Disable if you need pages to be at `/page.html` instead of `/page/index.html`
2626
autoSubfolderIndex: true,
2727

2828
// If disabled, only the root path or the paths defined in the pages config will be prerendered

e2e/react-start/basic-test-suite/src/special-characters.spec.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ test.describe('Unicode route rendering', () => {
6767
})
6868

6969
test.describe('Special characters in search params', () => {
70+
test.skip(
71+
isSpaMode,
72+
'SPA direct navigation currently drops these search-param cases before the route renders',
73+
)
74+
7075
test('should render route correctly on direct navigation', async ({
7176
page,
7277
baseURL,
@@ -223,14 +228,18 @@ test.describe('Unicode route rendering', () => {
223228
const link = page.getByTestId('special-malformed-path-link')
224229

225230
await link.click()
226-
227231
await page.waitForLoadState('load')
228232

229233
await expect(
230234
page.getByTestId('default-not-found-component'),
231235
).toBeInViewport()
232236
})
233237

238+
test.skip(
239+
isSpaMode,
240+
'SPA direct navigation currently drops these search-param cases before the route renders',
241+
)
242+
234243
test('un-matched malformed paths should return not found on direct navigation in search params', async ({
235244
page,
236245
baseURL,

e2e/solid-start/basic-test-suite/src/special-characters.spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,23 @@ test.describe('Unicode route rendering', () => {
8282
`${baseURL}/specialChars/search?searchParam=%EB%8C%80|`,
8383
)
8484

85+
await page.waitForLoadState('networkidle')
86+
8587
const searchParam = await page
8688
.getByTestId('special-search-param')
8789
.textContent()
8890

8991
expect(searchParam).toBe('대|')
92+
93+
const loadedOn = await page
94+
.getByTestId('special-search-loaded-info')
95+
.textContent()
96+
97+
if (isSpaMode) {
98+
expect(loadedOn).toBe('Loaded on: client')
99+
} else {
100+
expect(loadedOn).toBe('Loaded on: server')
101+
}
90102
})
91103

92104
test('should render route correctly on router navigation', async ({

e2e/vue-start/basic-test-suite/src/not-found.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test.use({
1212
],
1313
})
1414
test.describe('not-found', () => {
15-
test(`global not found`, async ({ page }) => {
15+
test.skip(`global not found`, async ({ page }) => {
1616
const response = await page.goto(`/this-page-does-not-exist/foo/bar`)
1717

1818
expect(response?.status()).toBe(isSpaMode ? 200 : 404)
@@ -84,7 +84,7 @@ test.describe('not-found', () => {
8484
).not.toBeInViewport()
8585
})
8686

87-
test('direct visit: beforeLoad notFound with routeId targets root boundary', async ({
87+
test.skip('direct visit: beforeLoad notFound with routeId targets root boundary', async ({
8888
page,
8989
}) => {
9090
await page.goto('/not-found/via-beforeLoad-target-root')

e2e/vue-start/basic-test-suite/src/special-characters.spec.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,23 @@ test.describe('Unicode route rendering', () => {
7777
`${baseURL}/specialChars/search?searchParam=%EB%8C%80|`,
7878
)
7979

80+
await page.waitForLoadState('networkidle')
81+
8082
const searchParam = await page
8183
.getByTestId('special-search-param')
8284
.textContent()
8385

8486
expect(searchParam).toBe('대|')
87+
88+
const loadedOn = await page
89+
.getByTestId('special-search-loaded-info')
90+
.textContent()
91+
92+
if (isSpaMode) {
93+
expect(loadedOn).toBe('Loaded on: client')
94+
} else {
95+
expect(loadedOn).toBe('Loaded on: server')
96+
}
8597
})
8698

8799
test('should render route correctly on router navigation', async ({
@@ -211,6 +223,7 @@ test.describe('Unicode route rendering', () => {
211223
const link = page.getByTestId('special-malformed-path-link')
212224

213225
await link.click()
226+
214227
await page.waitForLoadState('load')
215228

216229
await expect(

examples/solid/authenticated-routes-firebase/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,18 @@
2424

2525
Copy the .env.example provided and configure with your firebase credentials
2626

27-
````VITE_FIREBASE_API_KEY=
27+
```
28+
VITE_FIREBASE_API_KEY=
2829
VITE_FIREBASE_AUTH_DOMAIN=
2930
VITE_FIREBASE_PROJECT_ID=
3031
VITE_FIREBASE_STORAGE_BUCKET=
3132
VITE_FIREBASE_MESSAGING_SENDER_ID=
32-
VITE_FIREBASE_APP_ID=```
33+
VITE_FIREBASE_APP_ID=
34+
```
3335

3436
## Run the app
3537

3638
To run this example:
3739

3840
- `npm install` or `yarn`
3941
- `npm start` or `yarn start`
40-
````

0 commit comments

Comments
 (0)