@modern-js/main-doc 0.0.0-nightly-20231008160538 → 0.0.0-nightly-20231009160555

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.
@@ -161,7 +161,7 @@ These properties as defined are available via the [`useMatches`](https://reactro
161
161
 
162
162
  ```ts title="routes/layout.ts"
163
163
  export default () => {
164
- const matches = useMatches;
164
+ const matches = useMatches();
165
165
  const breadcrumbs = matches.map(
166
166
  matchedRoute => matchedRoute?.handle?.breadcrumbName,
167
167
  );
@@ -164,7 +164,7 @@ export const handle = {
164
164
 
165
165
  ```ts title="routes/layout.ts"
166
166
  export default () => {
167
- const matches = useMatches;
167
+ const matches = useMatches();
168
168
  const breadcrumbs = matches.map(
169
169
  matchedRoute => matchedRoute?.handle?.breadcrumbName,
170
170
  );
package/package.json CHANGED
@@ -15,17 +15,17 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20231008160538",
18
+ "version": "0.0.0-nightly-20231009160555",
19
19
  "publishConfig": {
20
20
  "registry": "https://registry.npmjs.org/",
21
21
  "access": "public",
22
22
  "provenance": true
23
23
  },
24
24
  "dependencies": {
25
- "@modern-js/sandpack-react": "0.0.0-nightly-20231008160538"
25
+ "@modern-js/sandpack-react": "0.0.0-nightly-20231009160555"
26
26
  },
27
27
  "peerDependencies": {
28
- "@modern-js/builder-doc": "0.0.0-nightly-20231008160538"
28
+ "@modern-js/builder-doc": "0.0.0-nightly-20231009160555"
29
29
  },
30
30
  "devDependencies": {
31
31
  "classnames": "^2",
@@ -39,8 +39,8 @@
39
39
  "@rspress/shared": "1.0.0-beta.0",
40
40
  "@types/node": "^16",
41
41
  "@types/fs-extra": "^9",
42
- "@modern-js/builder-doc": "0.0.0-nightly-20231008160538",
43
- "@modern-js/doc-plugin-auto-sidebar": "0.0.0-nightly-20231008160538"
42
+ "@modern-js/builder-doc": "0.0.0-nightly-20231009160555",
43
+ "@modern-js/doc-plugin-auto-sidebar": "0.0.0-nightly-20231009160555"
44
44
  },
45
45
  "scripts": {
46
46
  "dev": "rspress dev",