File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
packages/graph-explorer/src/modules/CreateConnection Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 16
16
([ #896 ] ( https://github.com/aws/graph-explorer/pull/896 ) )
17
17
- ** Updated** to use the React Compiler to improve performance and simplify code
18
18
([ #916 ] ( https://github.com/aws/graph-explorer/pull/916 ) )
19
+ - ** Fixed** issue where a schema sync would not automatically run when a
20
+ connection was changed
21
+ ([ #919 ] ( https://github.com/aws/graph-explorer/pull/919 ) )
19
22
20
23
## Release v1.15.0
21
24
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ import {
34
34
DEFAULT_NODE_EXPAND_LIMIT ,
35
35
} from "@/utils/constants" ;
36
36
import { useAtomCallback } from "jotai/utils" ;
37
+ import { useQueryClient } from "@tanstack/react-query" ;
37
38
38
39
type ConnectionForm = {
39
40
name ?: string ;
@@ -85,6 +86,7 @@ const CreateConnection = ({
85
86
onClose,
86
87
} : CreateConnectionProps ) => {
87
88
const styleWithTheme = useWithTheme ( ) ;
89
+ const queryClient = useQueryClient ( ) ;
88
90
89
91
const configId = existingConfig ?. id ;
90
92
const initialData : ConnectionForm | undefined = existingConfig
@@ -158,13 +160,16 @@ const CreateConnection = ({
158
160
updatedGraphs . delete ( configId ) ;
159
161
return updatedGraphs ;
160
162
} ) ;
163
+
164
+ await queryClient . resetQueries ( ) ;
161
165
}
162
166
} ,
163
167
[
164
168
configId ,
165
169
initialData ?. url ,
166
170
initialData ?. graphDbUrl ,
167
171
initialData ?. queryEngine ,
172
+ queryClient ,
168
173
]
169
174
)
170
175
) ;
You can’t perform that action at this time.
0 commit comments