Skip to content

Commit

Permalink
docs: correct statesHookHelper export
Browse files Browse the repository at this point in the history
  • Loading branch information
JOU-amjs committed Nov 4, 2024
1 parent 386dac6 commit a1f29c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/tutorial/06-advanced/02-custom/03-client-strategy.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ We innovatively use **state proxy** to smooth out the differences in UI framewor
In order to smooth out the differences in state proxies, we provide the `statesHookHelper` function to create auxiliary functions, and use these auxiliary functions to implement useHook across UI frameworks.
```js
import { statesHookHelper } from '@alova/shared/function';
import { statesHookHelper } from 'alova/client';
import { promiseStatesHook } from 'alova';

function myUseHook(methodHandler, options) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ useHook 是 alova 最常用的请求策略,而且它是跨 UI 框架的,当
为了抹平状态代理的差异性,我们提供了`statesHookHelper`函数来创建辅助函数,通过这些辅助函数来实现跨 UI 框架的 useHook。
```js
import { statesHookHelper } from '@alova/shared/function';
import { statesHookHelper } from 'alova/client';
import { promiseStatesHook } from 'alova';

function myUseHook(methodHandler, options) {
Expand Down

0 comments on commit a1f29c9

Please sign in to comment.