You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Notice: statements, tableColumns, selectedFields make loop dependenciesconsttableColumns=useMemo(()=>statementColumns(statements,showFullSQL),[statements,showFullSQL])// make selectedFields as a string instead of an array to avoid infinite loop// I have verified that it will cause infinite loop if we return selectedFields as an array// so it is better to use the basic type (string, number...) instead of object as the dependencyconstselectedFields=useMemo(()=>getSelectedFields(visibleColumnKeys,tableColumns).join(','),[visibleColumnKeys,tableColumns])
The text was updated successfully, but these errors were encountered:
Related PR: #749 (comment)
Do so for useSlowQueryTableContoller as well.
Code:
The text was updated successfully, but these errors were encountered: