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

Arrays and objects are not expanded (or expandable) #127

Closed
juniorclearmetal opened this issue Mar 16, 2020 · 2 comments
Closed

Arrays and objects are not expanded (or expandable) #127

juniorclearmetal opened this issue Mar 16, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@juniorclearmetal
Copy link

In some cases where an array or object is a property of a parent object(s) it is represented as Array or Object, with no way I can find to expand them. console.dir does not work and there is no setting in preferences to do this. I can use JSON.stringify but that output is not formatted and hard to read. This limits the usefulness of RunJS because seeing the full output is not only helpful but often how I validate the functionality I am writing.

Examples:

const things = [
  {
    val: [
      {
        key: "1234",
        data: { location: "US" },
        label: "SAVANNAH, GEORGIA",
        value: "US"
      }
    ],
  }
];

const fnObj = () => ({
  item: things.map((thing, i) => ({thing}))
});

const fnArr = () => ({
  item: things.map((thing, i) => thing)
});

fnObj();
//=> { item: [ { thing: [Object] } ] }

fnArr();
//=> { item: [ { val: [Array] } ] }

The same thing in DevTools console:

Screen Shot 2020-03-16 at 9 11 48 AM

Screen Shot 2020-03-16 at 9 11 01 AM

@lukehaas
Copy link
Owner

@juniorclearmetal thanks for raising this. You're right, this isn't good. I will investigate and try and find a solution.

@lukehaas lukehaas added the bug Something isn't working label Mar 16, 2020
@lukehaas
Copy link
Owner

@juniorclearmetal this is now fixed in RunJS version 1.10.0.
You can now explore with infinite depth.

Screenshot 2020-07-17 at 17 17 30

Thanks again for raising this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants