Allow only dot notation on state access, remove array
See original GitHub issueWe 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:
- Created 7 years ago
- Comments:9 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Think we should support both but have dot notation in all docs.
We are doing this now, closing it 😃