main
js 19 lines 434 Bytes
Raw
1 import {mutate} from 'shared-runtime';
2
3 function useFoo(props) {
4 let x = [];
5 x.push(props.bar);
6 props.cond ? (({x} = {x: {}}), ([x] = [[]]), x.push(props.foo)) : null;
7 mutate(x);
8 return x;
9 }
10
11 export const FIXTURE_ENTRYPOINT = {
12 fn: useFoo,
13 params: [{cond: false, foo: 2, bar: 55}],
14 sequentialRenders: [
15 {cond: false, foo: 2, bar: 55},
16 {cond: false, foo: 3, bar: 55},
17 {cond: true, foo: 3, bar: 55},
18 ],
19 };