JSTQL-JS-Transform/output_testing/1087error.todo-object-expression-computed-key-modified-during-after-construction.js

15 lines
No EOL
328 B
JavaScript

import { identity, mutate, mutateAndReturn } from "shared-runtime";
function Component(props) {
const key = {};
const context = {
[key |> mutateAndReturn(%)]: [props.value] |> identity(%)
};
key |> mutate(%);
return context;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{
value: 42
}]
};