Skip to content

Commit 46ac359

Browse files
fix(react): create initialContext props in <Stack /> component for SSR support (#508)
Co-authored-by: Tony Won <tony@daangn.com>
1 parent 03e1d3a commit 46ac359

File tree

31 files changed

+259
-108
lines changed

31 files changed

+259
-108
lines changed

.changeset/five-chicken-wait.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@stackflow/react": patch
3+
---
4+
5+
fix: pass initial context to `<MainRenderer />`

.changeset/pre.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"mode": "exit",
3+
"tag": "canary",
4+
"initialVersions": {
5+
"@stackflow/config": "1.1.0",
6+
"@stackflow/core": "1.1.0",
7+
"@stackflow/demo": "1.3.2-canary.0",
8+
"@stackflow/docs": "1.2.27-canary.0",
9+
"@stackflow/compat-await-push": "1.1.13-canary.0",
10+
"@stackflow/link": "1.4.5-canary.0",
11+
"@stackflow/plugin-basic-ui": "1.9.2-canary.0",
12+
"@stackflow/plugin-devtools": "0.1.11",
13+
"@stackflow/plugin-google-analytics-4": "1.1.15-canary.0",
14+
"@stackflow/plugin-history-sync": "1.6.3-canary.0",
15+
"@stackflow/plugin-map-initial-activity": "1.0.11-canary.0",
16+
"@stackflow/plugin-preload": "1.4.2-canary.0",
17+
"@stackflow/plugin-renderer-basic": "1.1.13-canary.0",
18+
"@stackflow/plugin-renderer-web": "1.1.13-canary.0",
19+
"@stackflow/plugin-stack-depth-change": "1.1.5",
20+
"@stackflow/react-ui-core": "1.1.2-canary.0",
21+
"@stackflow/react": "1.3.2-canary.0",
22+
"@stackflow/esbuild-config": "1.0.3"
23+
},
24+
"changesets": [
25+
"five-chicken-wait",
26+
"tiny-hounds-attack"
27+
]
28+
}

.changeset/tiny-hounds-attack.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@stackflow/react": patch
3+
---
4+
5+
fix: create `initialContext` props in `<Stack />` component for SSR support

demo/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# @stackflow/demo
22

3+
## 1.3.2-canary.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- @stackflow/react@1.3.2-canary.0
9+
- @stackflow/compat-await-push@1.1.13-canary.0
10+
- @stackflow/link@1.4.5-canary.0
11+
- @stackflow/plugin-basic-ui@1.9.2-canary.0
12+
- @stackflow/plugin-history-sync@1.6.3-canary.0
13+
- @stackflow/plugin-map-initial-activity@1.0.11-canary.0
14+
- @stackflow/plugin-preload@1.4.2-canary.0
15+
- @stackflow/plugin-renderer-basic@1.1.13-canary.0
16+
317
## 1.3.1
418

519
### Patch Changes

demo/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stackflow/demo",
3-
"version": "1.3.1",
3+
"version": "1.3.2-canary.0",
44
"private": true,
55
"license": "MIT",
66
"type": "module",
@@ -32,18 +32,18 @@
3232
"dependencies": {
3333
"@seed-design/design-token": "^1.0.3",
3434
"@seed-design/stylesheet": "^1.0.4",
35-
"@stackflow/compat-await-push": "^1.1.12",
35+
"@stackflow/compat-await-push": "^1.1.13-canary.0",
3636
"@stackflow/config": "^1.1.0",
3737
"@stackflow/core": "^1.1.0",
38-
"@stackflow/link": "^1.4.4",
39-
"@stackflow/plugin-basic-ui": "^1.9.1",
38+
"@stackflow/link": "^1.4.5-canary.0",
39+
"@stackflow/plugin-basic-ui": "^1.9.2-canary.0",
4040
"@stackflow/plugin-devtools": "^0.1.11",
41-
"@stackflow/plugin-history-sync": "^1.6.2",
42-
"@stackflow/plugin-map-initial-activity": "^1.0.10",
43-
"@stackflow/plugin-preload": "^1.4.1",
44-
"@stackflow/plugin-renderer-basic": "^1.1.12",
41+
"@stackflow/plugin-history-sync": "^1.6.3-canary.0",
42+
"@stackflow/plugin-map-initial-activity": "^1.0.11-canary.0",
43+
"@stackflow/plugin-preload": "^1.4.2-canary.0",
44+
"@stackflow/plugin-renderer-basic": "^1.1.13-canary.0",
4545
"@stackflow/plugin-stack-depth-change": "^1.1.5",
46-
"@stackflow/react": "^1.3.0",
46+
"@stackflow/react": "^1.3.2-canary.0",
4747
"lorem-ipsum": "^2.0.8",
4848
"lz-string": "^1.5.0",
4949
"normalize.css": "^8.0.1",

docs/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# @stackflow/docs
22

3+
## 1.2.27-canary.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- @stackflow/react@1.3.2-canary.0
9+
- @stackflow/demo@1.3.2-canary.0
10+
- @stackflow/plugin-basic-ui@1.9.2-canary.0
11+
- @stackflow/plugin-history-sync@1.6.3-canary.0
12+
- @stackflow/plugin-renderer-basic@1.1.13-canary.0
13+
314
## 1.2.26
415

516
### Patch Changes

docs/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stackflow/docs",
3-
"version": "1.2.26",
3+
"version": "1.2.27-canary.0",
44
"private": true,
55
"description": "Mobile-first stack navigator framework with Composable Plugin System",
66
"license": "MIT",
@@ -12,11 +12,11 @@
1212
"dependencies": {
1313
"@mdx-js/react": "^3.0.1",
1414
"@stackflow/core": "^1.1.0",
15-
"@stackflow/demo": "^1.3.1",
16-
"@stackflow/plugin-basic-ui": "^1.9.1",
17-
"@stackflow/plugin-history-sync": "^1.6.2",
18-
"@stackflow/plugin-renderer-basic": "^1.1.12",
19-
"@stackflow/react": "^1.3.0",
15+
"@stackflow/demo": "^1.3.2-canary.0",
16+
"@stackflow/plugin-basic-ui": "^1.9.2-canary.0",
17+
"@stackflow/plugin-history-sync": "^1.6.3-canary.0",
18+
"@stackflow/plugin-renderer-basic": "^1.1.13-canary.0",
19+
"@stackflow/react": "^1.3.2-canary.0",
2020
"@types/react": "^18.3.3",
2121
"next": "^14.2.4",
2222
"nextra": "^2.13.4",

extensions/compat-await-push/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @stackflow/compat-await-push
22

3+
## 1.1.13-canary.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- @stackflow/react@1.3.2-canary.0
9+
310
## 1.1.12
411

512
## 1.1.12-canary.0

extensions/compat-await-push/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stackflow/compat-await-push",
3-
"version": "1.1.12",
3+
"version": "1.1.13-canary.0",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/daangn/stackflow.git",
@@ -33,7 +33,7 @@
3333
"devDependencies": {
3434
"@stackflow/core": "^1.1.0",
3535
"@stackflow/esbuild-config": "^1.0.3",
36-
"@stackflow/react": "^1.3.0",
36+
"@stackflow/react": "^1.3.2-canary.0",
3737
"@types/react": "^18.3.3",
3838
"esbuild": "^0.23.0",
3939
"react": "^18.3.1",
@@ -42,7 +42,7 @@
4242
},
4343
"peerDependencies": {
4444
"@stackflow/core": "^1.1.0-canary.0",
45-
"@stackflow/react": "^1.3.0-canary.0",
45+
"@stackflow/react": "^1.3.2-canary.0",
4646
"@types/react": ">=16.8.0",
4747
"react": ">=16.8.0"
4848
},

extensions/link/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @stackflow/link
22

3+
## 1.4.5-canary.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- @stackflow/react@1.3.2-canary.0
9+
- @stackflow/plugin-history-sync@1.6.3-canary.0
10+
- @stackflow/plugin-preload@1.4.2-canary.0
11+
312
## 1.4.4
413

514
## 1.4.4-canary.0

0 commit comments

Comments
 (0)