Closed Ayc0 closed 4 years ago
Input:
setState(previousState => ({ ...previousState, field: { ...previousState.field, [field]: true } }))
Output:
setState(function (previousState) { var obj; return (Object.assign({}, previousState, {field: Object.assign({}, previousState.field, ( obj = {}, obj[field] = true, obj )})); })
Desired output:
setState(function (previousState) { var obj; return (Object.assign({}, previousState, {field: Object.assign({}, previousState.field, ( obj = {}, obj[field] = true, obj ))})); // ^ })
Related: #163
Input:
Output:
Desired output: