question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

This is amazingly useful and neat!

question: I happen to pass on the item array inside an object, i.e.

instead of

let items = [ {id: 1, name: "item1"}, {id: 2, name: "item2"}, {id: 3, name: "item3"}, {id: 4, name: "item4"} ];

I have

let node = { items: [ {id: 1, name: "item1"}, {id: 2, name: "item2"}, {id: 3, name: "item3"}, {id: 4, name: "item4"} ]; other: 'somehting' };

but I get a compile error if I now use

use:dndzone={{node.items, flipDurationMs}}

it doesn’t like the .-notation

Do you know of any simple trick? I would very much need to keep the structure of node.items as node also carries other information.

Thanks for this!!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:36 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
isaacHagoelcommented, Aug 8, 2020

thx for verifying. merged

1reaction
zahachtahcommented, Aug 8, 2020

perfect! works flawless.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data Structures: Objects and Arrays - Eloquent JavaScript
Objects and arrays (which are a specific kind of object) provide ways to group several values into a single value. Conceptually, this allows...
Read more >
Array inside a JavaScript Object? - Stack Overflow
To assign a two dimensional array to an object you have a few options. You can initialise the empty 2D array first: myObject....
Read more >
JavaScript Array of Objects Tutorial – How to Create, Update ...
In this article, I'll show you the basics of working with object arrays in JavaScript. If you ever worked with a JSON structure,...
Read more >
JavaScript Arrays - W3Schools
Arrays are a special type of objects. The typeof operator in JavaScript returns "object" for arrays. But, JavaScript arrays are best described as...
Read more >
Array Object
The Array Object ... Arrays are data structures that store information in a set of adjacent memory addresses. In practice, this means is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found