@@ -7,7 +7,7 @@ import type { SchedulerType } from "../scheduler/types";
7
7
import type { ListenerType } from "../subscribe/types" ;
8
8
import type { StateRestoreAccomplishedMapType , InitialFnCanExecMapType } from "../restore/types" ;
9
9
import useSyncExternalStoreExports from "use-sync-external-store/shim" ;
10
- import React , { type ReactNode , memo } from "react" ;
10
+ import React , { memo } from "react" ;
11
11
import { initialStateRetrieve , deferRestoreProcessing } from "../restore" ;
12
12
import { batchUpdate } from "../static" ;
13
13
import { __CLASS_STATE_REF_SET_KEY__ } from "../classConnect/static" ;
@@ -341,7 +341,8 @@ export const hookSignal = <S extends PrimitiveState>(
341
341
* to indirectly invoke useState by reading data properties through engineStore,
342
342
* achieving a componentized return result.
343
343
*/
344
- ( value as AnyFn ) . bind ( engineStore , ...Object . values ( props ) ) ( ) as ReactNode
344
+ // Prevent different versions of react from having different descriptions, which can be replaced with any
345
+ ( value as AnyFn ) . bind ( engineStore , ...Object . values ( props ) ) ( ) as any
345
346
) ) ;
346
347
347
348
const { AnyHookCompMemo } = value ;
@@ -372,7 +373,8 @@ export const classSignal = <S extends PrimitiveState>(value: ValueOf<S>, store:
372
373
> {
373
374
store = this . connectStore ( store ) ;
374
375
render ( ) {
375
- return ( value as AnyFn ) . bind ( this . store , ...Object . values ( this . props ) ) ( ) as ReactNode ;
376
+ // Prevent different versions of react from having different descriptions, which can be replaced with any
377
+ return ( value as AnyFn ) . bind ( this . store , ...Object . values ( this . props ) ) ( ) as any ;
376
378
}
377
379
} ;
378
380
0 commit comments