@@ -12,7 +12,8 @@ export function reactChildrenToArray(children) {
12
12
return React . Children . toArray ( children ) ;
13
13
}
14
14
15
- export var memo_ = React . memo ;
15
+ export const memo_ = React . memo ;
16
+ export const memoEq_ = React . memo ;
16
17
17
18
export function useState_ ( tuple , initialState ) {
18
19
const [ state , setState ] = React . useState (
@@ -52,7 +53,7 @@ export function useReducer_(tuple, reducer, initialState) {
52
53
return tuple ( state , dispatch . $$reactBasicHooks$$cachedDispatch ) ;
53
54
}
54
55
55
- export var useRef_ = React . useRef ;
56
+ export const useRef_ = React . useRef ;
56
57
57
58
export function readRef_ ( ref ) {
58
59
return ref . current ;
@@ -62,15 +63,15 @@ export function writeRef_(ref, a) {
62
63
ref . current = a ;
63
64
}
64
65
65
- export var useContext_ = React . useContext ;
66
+ export const useContext_ = React . useContext ;
66
67
export { useEqCache as useEqCache_ } ;
67
68
68
69
export function useMemo_ ( eq , deps , computeA ) {
69
70
const memoizedKey = useEqCache ( eq , deps ) ;
70
71
return React . useMemo ( computeA , [ memoizedKey ] ) ;
71
72
}
72
73
73
- export var useDebugValue_ = React . useDebugValue ;
74
+ export const useDebugValue_ = React . useDebugValue ;
74
75
75
76
export function unsafeSetDisplayName ( displayName , component ) {
76
77
component . displayName = displayName ;
0 commit comments