-
Notifications
You must be signed in to change notification settings - Fork 405
Resource Loading
Alexey edited this page Jun 5, 2023
·
6 revisions
We are using React Suspense for data loading. (It's part of Concurrent Mode)
export const ExtendedDDLViewerTabPanel: NavNodeTransformViewComponent = observer(function ExtendedDDLViewerTabPanel({
nodeId, folderId
}) {
const extendedDDLResource = useResource(ExtendedDDLViewerTabPanel, ExtendedDDLResource, nodeId);
const connectionDialectResource = useResource(ExtendedDDLViewerTabPanel, ConnectionDialectResource, connectionParam);
return styled(style)(
<wrapper>
<SQLCodeEditorLoader
bindings={{
autoCursor: false,
}}
value={extendedDDLResource.data}
dialect={connectionDialectResource.data}
readonly
/>
<MenuBar menu={menu} style={MENU_BAR_DEFAULT_STYLES} />
</wrapper>
);
});
- We are loading resources with
useResource
- when we access
extendedDDLResource.data
andconnectionDialectResource.data
it triggerssuspense
API -
<Loader suspense>
used inTabPanel
will display loading states
How it works:
useResource
will load data and track resource outdating. It's returning state with data and isLoading
, isLoaded
, isOutdated
, tryGetData
tryGetData
is equivalent to data
but it will not trigger suspense
API and can be used to track loading states manually
The closest Loader
will display states of loading.
component - can be React Component, React Functional Component or React Hook resource - resource instance or class key - null (skip resource loading) or any other valid value
- Application overview
- Demo Server
- Administration
- Server configuration
- Create Connection
- Network configuration settings
- Connection Templates Management
- Access Management
-
Authentication methods
-
Local Access Authentication
- Anonymous Access Configuration
- Reverse proxy header authentication
- LDAP
-
Single Sign On
-
SAML
-
OpenID
-
AWS OpenID
-
AWS SAML
-
AWS IAM
-
AWS OpenId via Okta
-
Snowflake SSO
-
Okta OpenId
-
Cognito OpenId
-
JWT authentication
-
Kerberos authentication
-
NTLM
-
Microsoft Entra ID authentication
-
Google authentication
-
Local Access Authentication
- User credentials storage
-
Cloud Explorer
-
Cloud storage
-
Query Manager
-
Drivers Management
- Supported databases
- Accessibility
- Keyboard shortcuts
- Features
- Server configuration
- CloudBeaver and Nginx
-
Domain manager
- Configuring HTTPS for Jetty server
- Command line parameters
- Local Preferences
- API
-
CloudBeaver Community
-
CloudBeaver AWS
-
CloudBeaver Enterprise
-
Deployment options
-
Development