mirror of
https://github.com/apache/superset.git
synced 2026-05-12 03:15:55 +00:00
perf(sqllab): Rendering perf improvement using immutable state (#20877)
* perf(sqllab): Rendering perf improvement using immutable state - keep queryEditors immutable during active state - add unsavedQueryEditor to store all active changes - refactor each component to subscribe the related unsaved editor state only * revert ISaveableDatasource type cast * missing trigger prop * a default of an empty object and optional operator
This commit is contained in:
@@ -17,9 +17,11 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import { defaultQueryEditor } from 'src/SqlLab/fixtures';
|
||||
import { newQueryTabName } from './newQueryTabName';
|
||||
|
||||
const emptyEditor = {
|
||||
...defaultQueryEditor,
|
||||
title: '',
|
||||
schema: '',
|
||||
autorun: false,
|
||||
|
||||
Reference in New Issue
Block a user