Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/object-method-shorthand-aliased-mutate-after.js
2026-08-27 21:09:14 +00:00

17 lines
333 B
JavaScript

import {createHookWrapper, mutate, mutateAndReturn} from 'shared-runtime';
function useHook({value}) {
const x = mutateAndReturn({value});
const obj = {
getValue() {
return value;
},
};
mutate(x);
return obj;
}
export const FIXTURE_ENTRYPOINT = {
fn: createHookWrapper(useHook),
params: [{value: 0}],
};