purescript-halogen-vdom
purescript-halogen-vdom copied to clipboard
Example is broken?
I tried to run the example, and the browser is complaining about how ENV
is not defined. Looking at the FFI javascript:
exports.getData = function () {
return ENV.generateData().toArray();
};
exports.getTimeout = function () {
return ENV.timeout
};
exports.pingRenderRate = function () {
Monitoring.renderRate.ping();
};
exports.requestAnimationFrame = function (f) {
return function () {
window.requestAnimationFrame(function () {
f();
});
}
}
It seems that ENV is meant to be provided by the user, but for example generateData()
doesn't appear anywhere else in the code. Being a newcomer to the library (and purescript in general), I'm not sure what it's supposed to do.
Sorry for the confusing setup. The test
directory is an implementation of https://github.com/mathieuancelin/js-repaint-perfs, and it's currently expecting that to be checked out as a sibling repo https://github.com/slamdata/purescript-halogen-vdom/blob/6693cd4236f03fe2420d118a51ad82880b47196a/index.html#L13