JSTQL-JS-Transform/output_testing/1146context-variable-reassigned-reactive-capture.js

22 lines
326 B
JavaScript
Raw Normal View History

import { invoke } from "shared-runtime";
function Component({
value
}) {
let x = null;
const reassign = () => {
x = value;
};
reassign |> invoke(%);
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{
value: 2
}],
sequentialRenders: [{
value: 2
}, {
value: 4
}]
};