Skip to content

Commit 8389abd

Browse files
更新 hooks.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 7863cf6 commit 8389abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/data-objectql/src/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export interface UseObjectQLMutationOptions {
7878
export function useObjectQL(options: UseObjectQLOptions): ObjectQLDataSource {
7979
return useMemo(
8080
() => new ObjectQLDataSource(options.config),
81-
// Serialize the entire config to detect any changes
81+
[options.config]
8282
[JSON.stringify(options.config)]
8383
);
8484
}

0 commit comments

Comments
 (0)