@@ -21,27 +21,24 @@ export type CreateStoreWithComponentProps<P extends Record<string, unknown>, T e
21
21
// TODO
22
22
/**
23
23
* @public
24
- * @deprecated
25
- * new version of React 'StrictMode' cause lifeCycle function not work as expect
26
- * try to disable `StrictMode` to fix this issue
24
+ * @deprecated
25
+ * not recommend to use this function, use `createStore` instead
27
26
*/
28
27
export function createStoreWithComponent < T extends Record < string , unknown > > (
29
28
props : CreateStoreWithComponentProps < NonNullable < unknown > , T >
30
29
) : ( { children } : { children ?: ( p : DeepReadonly < UnwrapNestedRefs < T > > ) => ReactNode } ) => ReactElement ;
31
30
/**
32
31
* @public
33
32
* @deprecated
34
- * new version of React 'StrictMode' cause lifeCycle function not work as expect
35
- * try to disable `StrictMode` to fix this issue
33
+ * not recommend to use this function, use `createStore` instead
36
34
*/
37
35
export function createStoreWithComponent < P extends Record < string , unknown > , T extends Record < string , unknown > > (
38
36
props : CreateStoreWithComponentProps < P , T >
39
37
) : ( { children } : { children ?: ( p : P & DeepReadonly < UnwrapNestedRefs < T > > ) => ReactNode } & P ) => ReactElement ;
40
38
/**
41
39
* @public
42
40
* @deprecated
43
- * new version of React 'StrictMode' cause lifeCycle function not work as expect
44
- * try to disable `StrictMode` to fix this issue
41
+ * not recommend to use this function, use `createStore` instead
45
42
*/
46
43
export function createStoreWithComponent < P extends Record < string , unknown > , T extends Record < string , unknown > > ( props : CreateStoreWithComponentProps < P , T > ) {
47
44
const { setup, render } = props ;
0 commit comments