parent
b02a83c96e
commit
ba9baec27f
1 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ exports.withRendererCallback = (mapper) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.withLocalCallback = () => {
|
exports.withLocalCallback = () => {
|
||||||
return exports.mapNumbers(x => x + 1);
|
return [1,2,3].map(x => x + 1);
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ const withRendererCb = mapNumbers.withRendererCallback(x => x + 1);
|
||||||
|
|
||||||
const withLocalCb = mapNumbers.withLocalCallback();
|
const withLocalCb = mapNumbers.withLocalCallback();
|
||||||
|
|
||||||
console.log(withRendererCb, withLocalCb); // [true, true, true], [2, 3, 4]
|
console.log(withRendererCb, withLocalCb); // [undefined, undefined, undefined], [2, 3, 4]
|
||||||
```
|
```
|
||||||
|
|
||||||
As you can see, the renderer callback's synchronous return value was not as
|
As you can see, the renderer callback's synchronous return value was not as
|
||||||
|
|
Loading…
Reference in a new issue