This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(web): 修复 web 下 useQuery 无法获取到参数的问题
fix #1112
- Loading branch information
Showing
13 changed files
with
105 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
import * as React from 'react'; | ||
import { View, Text } from 'remax/one'; | ||
import { useQuery } from 'remax'; | ||
import { View } from 'remax/one'; | ||
|
||
export default () => { | ||
return <View>page two</View>; | ||
const query = useQuery(); | ||
return ( | ||
<View> | ||
page two | ||
<View>{query.q}</View> | ||
</View> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
packages/remax-cli/src/__tests__/integration/fixtures/lifeCycle/expected/app.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 8 additions & 8 deletions
16
packages/remax-cli/src/__tests__/integration/fixtures/lifeCycle/expected/pages/classPage.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
18 changes: 9 additions & 9 deletions
18
packages/remax-cli/src/__tests__/integration/fixtures/lifeCycle/expected/pages/index.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
30 changes: 23 additions & 7 deletions
30
packages/remax-cli/src/__tests__/integration/fixtures/lifeCycle/expected/remax-vendors.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
packages/remax-cli/src/__tests__/integration/fixtures/runtime-plugin/expected/app.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 6 additions & 6 deletions
12
packages/remax-cli/src/__tests__/integration/fixtures/runtime-plugin/expected/pages/index.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
30 changes: 23 additions & 7 deletions
30
...ges/remax-cli/src/__tests__/integration/fixtures/runtime-plugin/expected/remax-vendors.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
c6e6b75
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: