mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
9f3e30088d
Preserve source-specific labels for aliasing diagnostics while retaining their shared analysis identity. Previously, interning by place, message, and help reused the first source location for later effects. Validated with `just ready` and React ecosystem comparisons. AI-assisted: Codex was used to implement and validate this change.
13 lines
332 B
JavaScript
13 lines
332 B
JavaScript
function useMutate(document) {
|
|
const updateData = useCallback(() => {
|
|
document.data = {};
|
|
}, [document]);
|
|
const updateTitle = useCallback(() => {
|
|
document.title = '';
|
|
}, [document]);
|
|
const updateIcon = useCallback(() => {
|
|
document.icon = '';
|
|
}, [document]);
|
|
return [updateData, updateTitle, updateIcon];
|
|
}
|