| 1 | import {mutate} from 'shared-runtime'; |
| 2 | |
| 3 | function useFoo(props) { |
| 4 | let x = []; |
| 5 | x.push(props.bar); |
| 6 | if (props.cond) { |
| 7 | x = {}; |
| 8 | x = []; |
| 9 | x.push(props.foo); |
| 10 | } |
| 11 | mutate(x); |
| 12 | return x; |
| 13 | } |
| 14 | |
| 15 | export const FIXTURE_ENTRYPOINT = { |
| 16 | fn: useFoo, |
| 17 | params: [{bar: 'bar', foo: 'foo', cond: true}], |
| 18 | sequentialRenders: [ |
| 19 | {bar: 'bar', foo: 'foo', cond: true}, |
| 20 | {bar: 'bar', foo: 'foo', cond: true}, |
| 21 | {bar: 'bar', foo: 'foo', cond: false}, |
| 22 | ], |
| 23 | }; |