|
1
|
import {Stringify} from 'shared-runtime'; |
|
2
|
|
|
3
|
let renderCount = 0; |
|
4
|
function Foo() { |
|
5
|
const cb = () => { |
|
6
|
renderCount += 1; |
|
7
|
return renderCount; |
|
8
|
}; |
|
9
|
return <Stringify cb={cb} shouldInvokeFns={true} />; |
|
10
|
} |
|
11
|
|
|
12
|
export const FIXTURE_ENTRYPOINT = { |
|
13
|
fn: Foo, |
|
14
|
params: [{}], |
|
15
|
}; |