mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 07:56:01 +00:00
socket.io integration, reload connection list after change
This commit is contained in:
@@ -7,8 +7,10 @@ import connectionAppObject from '../appobj/connectionAppObject';
|
||||
|
||||
export default function DatabaseWidget() {
|
||||
const modalState = useModalState();
|
||||
const connections = useFetch('connections/list', []);
|
||||
console.log(connections);
|
||||
const connections = useFetch({
|
||||
url: 'connections/list',
|
||||
reloadTrigger: 'connection-list-changed',
|
||||
});
|
||||
return (
|
||||
<>
|
||||
<ConnectionModal modalState={modalState} />
|
||||
|
||||
Reference in New Issue
Block a user