Skip to content

App freezes if session variable value is too large #16

Description

@bwobst

Example:

var apiKey = [you'll need to use yours to repro: https://secure.mashery.com/login/edmunds.mashery.com/];
var apiEndPoint = "https://api.edmunds.com/api/vehicle/v2/makes?fmt=json&api_key=" + apiKey;

Meteor.http.get(apiEndPoint,
      function(error, result) {

        if (!error && result.statusCode === 200) {

          // This breaks JetSetter.  I think it's because the value of the variable is too large:
          // var res = JSON.parse(result.content);
          // makes = res.makes;
          // console.log(res.makes); // array of 62 objects
          // Session.set('jsonResMakes', makes);

          // This works great
          var test = [{niceName: 'a'}, {niceName: 'b'}, {niceName: 'c'}];
          Session.set('jsonResMakes', test);

        } else {
          console.log('didn\'t work...');
        }

      });

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions