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.

Allow only dot notation on state access, remove array

See original GitHub issue

We have decided to remove the array notation for state tree path access. This is primary to decrease complexity. With ES6 template literals and join it is relatively straightforward to turn any array into a string or combine strings directly.

If you have a good reason to keep it, please list it here.

  • Add deprecation for array access

So for example instead of state.get(['app', 'users', userID]) you will now need to do state.get(app.users.${userID})

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
edgesoftcommented, Jul 14, 2016

Think we should support both but have dot notation in all docs.

1reaction
christianalfonicommented, Aug 6, 2016

We are doing this now, closing it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript deleting a property from an array of objects with a ...
This question already has answers here: JavaScript property access: dot notation ...
Read more >
Dot notation vs Bracket notation | SamanthaMing.com
Only Bracket Notation works with Variable​​ Let's return to our variable object example previously. If you used the Dot notation, it will just...
Read more >
Working with Arrays In JavaScript I (Adding, Removing ...
It's possible to modify the elements in a given array. Using the Dot Notation we can access all the properties and methods defined...
Read more >
Arrays in F# | Microsoft Learn
Learn how to create and use arrays in the F# programming language. ... You can also access array elements by using slice notation, ......
Read more >
Table array with named variables that can contain different types
Table variables can have different data types and sizes as long as all variables have the same number of rows. Table variables have...
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