Skip to content

Commit

Permalink
fix: add export of useAsyncValue in single route mode (#6903)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkXia authored Jun 4, 2024
1 parent 18c7e3e commit 69c0f5a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/runtime/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @ice/runtime

## 1.4.9

Fix: add export of useAsyncValue in single route mode

## 1.4.8

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ice/runtime",
"version": "1.4.8",
"version": "1.4.9",
"description": "Runtime module for ice.js",
"type": "module",
"types": "./esm/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions packages/runtime/src/singleRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ export const useRevalidator = () => {
throw new Error('useRevalidator is not supported in single router mode');
};

export const useAsyncValue = () => {
throw new Error('useAsyncValue is not supported in single router mode');
};

export const getSingleRoute = async (
routes: RouteItem[],
basename: string,
Expand Down

0 comments on commit 69c0f5a

Please sign in to comment.