Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example is broken? #23

Open
adnelson opened this issue Sep 29, 2018 · 1 comment
Open

Example is broken? #23

adnelson opened this issue Sep 29, 2018 · 1 comment

Comments

@adnelson
Copy link

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.

@natefaubion
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants