File tree Expand file tree Collapse file tree
extensions/plugin-history-sync Expand file tree Collapse file tree Original file line number Diff line number Diff 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- ```
You can’t perform that action at this time.
0 commit comments