Skip to content

Example is broken? #23

@adnelson

Description

@adnelson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions