Files
pgadmin4/web/pgadmin/static/js/SchemaView/index.jsx
Ashesh Vashi 52af8d3e49 Introduce custom React Hook useSchemaState to simplify SchemaView component. #7776
Changes include: 
- Simplify current SchemaView code
- Add ability to reuse the schema data & state management implementation outside the SchemaDialogView component.
- Further split components in small and manageable separate files.
- Removed the 'DepListenerContext' context as there was no need for separate context.
- Added a reload functionality in the 'useSchemaState'
- Changes in feature tests.
2024-08-02 09:59:01 +05:30

50 lines
1.2 KiB
JavaScript

/////////////////////////////////////////////////////////////
//
// pgAdmin 4 - PostgreSQL Tools
//
// Copyright (C) 2013 - 2024, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
//////////////////////////////////////////////////////////////
import DataGridView from './DataGridView';
import FieldSetView from './FieldSetView';
import FormView from './FormView';
import SchemaDialogView from './SchemaDialogView';
import SchemaPropertiesView from './SchemaPropertiesView';
import SchemaView from './SchemaView';
import BaseUISchema from './base_schema.ui';
import { useSchemaState } from './useSchemaState';
import {
SCHEMA_STATE_ACTIONS,
SchemaStateContext,
generateTimeBasedRandomNumberString,
isModeSupportedByField,
getFieldMetaData,
isValueEqual,
isObjectEqual,
getForQueryParams
} from './common';
export default SchemaView;
export {
DataGridView,
FieldSetView,
FormView,
SchemaDialogView,
SchemaPropertiesView,
SchemaView,
BaseUISchema,
useSchemaState,
SCHEMA_STATE_ACTIONS,
SchemaStateContext,
generateTimeBasedRandomNumberString,
isModeSupportedByField,
getFieldMetaData,
isValueEqual,
isObjectEqual,
getForQueryParams
};