mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
[rcr][ez] Clean up unused $read from rcr (#31136)
This commit is contained in:
parent
1460d67c5b
commit
91c42a14c7
|
|
@ -36,14 +36,6 @@ export function c(size: number) {
|
|||
})[0];
|
||||
}
|
||||
|
||||
export function $read(memoCache: MemoCache, index: number) {
|
||||
const value = memoCache[index];
|
||||
if (value === $empty) {
|
||||
throw new Error('useMemoCache: read before write');
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
const LazyGuardDispatcher: {[key: string]: (...args: Array<any>) => any} = {};
|
||||
[
|
||||
'readContext',
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user