@fairys/taro-tools-react 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -70,7 +70,7 @@ export interface PageInfoDataOptions<T extends PageInfoDataInstanceState = PageI
|
|
|
70
70
|
isProxy?: boolean;
|
|
71
71
|
}
|
|
72
72
|
/**初始化实例*/
|
|
73
|
-
export declare const usePageInfoDataInstance: <T extends PageInfoDataInstanceState = PageInfoDataInstanceState>(instance
|
|
73
|
+
export declare const usePageInfoDataInstance: <T extends PageInfoDataInstanceState = PageInfoDataInstanceState>(instance?: PageInfoDataInstance<T>) => PageInfoDataInstance<T>;
|
|
74
74
|
/**页面级数据状态管理上下文*/
|
|
75
75
|
export declare const PageInfoDataInstanceContext: import("react").Context<PageInfoDataInstance<PageInfoDataInstanceState>>;
|
|
76
76
|
/**获取上下文实例*/
|
|
@@ -70,7 +70,7 @@ export interface PageInfoDataOptions<T extends PageInfoDataInstanceState = PageI
|
|
|
70
70
|
isProxy?: boolean;
|
|
71
71
|
}
|
|
72
72
|
/**初始化实例*/
|
|
73
|
-
export declare const usePageInfoDataInstance: <T extends PageInfoDataInstanceState = PageInfoDataInstanceState>(instance
|
|
73
|
+
export declare const usePageInfoDataInstance: <T extends PageInfoDataInstanceState = PageInfoDataInstanceState>(instance?: PageInfoDataInstance<T>) => PageInfoDataInstance<T>;
|
|
74
74
|
/**页面级数据状态管理上下文*/
|
|
75
75
|
export declare const PageInfoDataInstanceContext: import("react").Context<PageInfoDataInstance<PageInfoDataInstanceState>>;
|
|
76
76
|
/**获取上下文实例*/
|
package/package.json
CHANGED
|
@@ -188,7 +188,7 @@ export interface PageInfoDataOptions<T extends PageInfoDataInstanceState = PageI
|
|
|
188
188
|
|
|
189
189
|
/**初始化实例*/
|
|
190
190
|
export const usePageInfoDataInstance = <T extends PageInfoDataInstanceState = PageInfoDataInstanceState>(
|
|
191
|
-
instance
|
|
191
|
+
instance?: PageInfoDataInstance<T>,
|
|
192
192
|
) => {
|
|
193
193
|
const ref = useRef<PageInfoDataInstance<T>>();
|
|
194
194
|
if (!ref.current) {
|