17 lines
357 B
JavaScript
17 lines
357 B
JavaScript
import {identity, mutate, mutateAndReturn} from 'shared-runtime';
|
|
|
|
function Component(props) {
|
|
const key = {};
|
|
const context = {
|
|
[mutateAndReturn(key)]: identity([props.value]),
|
|
};
|
|
mutate(key);
|
|
return context;
|
|
}
|
|
|
|
export const FIXTURE_ENTRYPOINT = {
|
|
fn: Component,
|
|
params: [{value: 42}],
|
|
sequentialRenders: [{value: 42}, {value: 42}],
|
|
};
|