purescript-halogen-vdom icon indicating copy to clipboard operation
purescript-halogen-vdom copied to clipboard

Example is broken?

Open adnelson opened this issue 6 years ago • 1 comments

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.

adnelson avatar Sep 29 '18 03:09 adnelson

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

natefaubion avatar Oct 01 '18 01:10 natefaubion