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

App freezes if session variable value is too large #16

Open
bwobst opened this issue Mar 27, 2016 · 0 comments
Open

App freezes if session variable value is too large #16

bwobst opened this issue Mar 27, 2016 · 0 comments

Comments

@bwobst
Copy link

bwobst commented Mar 27, 2016

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...');
        }

      });
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

1 participant