Skip to content

Commit 18914c4

Browse files
Update README to remove URL semantics section
Removed section on reusing URL semantics from README.
1 parent 39a96e5 commit 18914c4

1 file changed

Lines changed: 0 additions & 31 deletions

File tree

‎extensions/plugin-history-sync/README.md‎

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -59,34 +59,3 @@ const { Stack } = stackflow({
5959
],
6060
});
6161
```
62-
63-
## Reusing URL semantics
64-
65-
`historySyncPlugin()` exposes the URL resolver used by the plugin instance.
66-
External features can use it to compare an Activity URL with the boot-time entry
67-
URL without duplicating route selection, encoding, hash, or SSR rules.
68-
69-
```typescript
70-
const historySync = historySyncPlugin({
71-
config,
72-
fallbackActivity: () => "NotFoundPage",
73-
});
74-
75-
const activityUrl = historySync.urlResolver.makeActivityUrl("MyArticle", {
76-
articleId: "42",
77-
});
78-
const entryUrl = historySync.urlResolver.resolveEntryUrl(initialContext);
79-
80-
const { Stack } = stackflow({
81-
config,
82-
components: {
83-
MyHome,
84-
MyArticle,
85-
NotFoundPage,
86-
},
87-
plugins: [
88-
// ...
89-
historySync,
90-
],
91-
});
92-
```

0 commit comments

Comments
 (0)