setValues and values
See original GitHub issueIf I have props.values as below
const {
values,
setValues
} = props
const {
names
} = values
where names equals to the following object
{
user1: 'jon',
user2: 'darrell'
}
how do I use setValues to change names.user1 to ‘Louisa’ for example?
Do I have to pass the entire mutated values object into setValues? IE:
values.names.user1 = 'Louisa'
setValues(values)
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
How do I use setValues to paste the data I got from getValues ...
Sets a rectangular grid of values (must match dimensions of this range). var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.
Read more >How to Get and Set Values on Google Sheets using Apps Script
In this post, I demonstrate how to Get and Set Values using Google Apps Script on Google Sheets.
Read more >Class Range | Apps Script - Google Developers
Method Return type Brief description
activateAsCurrentCell() Range Sets the specified cell as the current cell .
applyRowBanding() Banding Applies a default row banding theme to...
Read more >setValues() - React Advanced Form - GitBook
Sets the values of the given fields. · This method is designed to update the fields values during the runtime without making the...
Read more >setValues of Values, Methods Webix Docs - Documentation
Webix Documentation: Methods of Values. This page contains setValues documentation to help in learning the library.
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
Can I do this then? @6ewis @jaredpalmer
setFieldValue('names.user1', 'Louisa)
I eventually settled with the below initially.
This thread is old, but if you’ve gotten here late, one solution is using the immer library: