@gyoll/adapter-solid-router 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -82,11 +82,7 @@ Solid Router automatically integrates with `<Suspense>` boundaries. All componen
|
|
|
82
82
|
import { Suspense } from "solid-js";
|
|
83
83
|
|
|
84
84
|
export default function Layout(props) {
|
|
85
|
-
return
|
|
86
|
-
<Suspense fallback={<div>Loading...</div>}>
|
|
87
|
-
{props.children}
|
|
88
|
-
</Suspense>
|
|
89
|
-
);
|
|
85
|
+
return <Suspense fallback={<div>Loading...</div>}>{props.children}</Suspense>;
|
|
90
86
|
}
|
|
91
87
|
```
|
|
92
88
|
|
|
@@ -122,8 +118,8 @@ These are handled at the component level in Solid, not the route configuration l
|
|
|
122
118
|
|
|
123
119
|
```javascript
|
|
124
120
|
{
|
|
125
|
-
createRouter(routes, options),
|
|
126
|
-
|
|
121
|
+
createRouter(routes, options), // Returns Router component
|
|
122
|
+
transformRoutes(routes); // Transforms manifest to Solid format
|
|
127
123
|
}
|
|
128
124
|
```
|
|
129
125
|
|
|
@@ -136,8 +132,8 @@ const RouterComponent = await initFileRoutes({
|
|
|
136
132
|
routes,
|
|
137
133
|
adapter: solidRouterAdapter,
|
|
138
134
|
routerOptions: {
|
|
139
|
-
root: App,
|
|
140
|
-
base: "/app",
|
|
135
|
+
root: App, // Root component
|
|
136
|
+
base: "/app", // Base path
|
|
141
137
|
// ... other Router props
|
|
142
138
|
},
|
|
143
139
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gyoll/adapter-solid-router",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Solid Router adapter for Gyoll file-based routing",
|
|
6
6
|
"main": "./build-output/index.cjs",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@gyoll/runtime": "^0.1.0",
|
|
36
36
|
"solid-js": "^1.9.10",
|
|
37
|
-
"@solidjs/router": "
|
|
37
|
+
"@solidjs/router": "^0.15.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|