mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
c5f188a608
Match the public validation defaults from babel-plugin-react-compiler 1.0 while retaining explicit opt-in for newer validations. Validated with fixture snapshots and `just ready`. AI-assisted investigation and implementation; reviewed and understood by the contributor.
11 lines
309 B
TypeScript
11 lines
309 B
TypeScript
// @compilationMode:"infer" @panicThreshold:"none" @validateExhaustiveMemoizationDependencies
|
|
import {useMemo} from 'react';
|
|
|
|
export function Component({status, tick}) {
|
|
const value = useMemo(() => {
|
|
void tick;
|
|
return status.expiresAt;
|
|
}, [tick, status.expiresAt]);
|
|
return <div>{value}</div>;
|
|
}
|