File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
packages/angular/src/data-connect Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -61,20 +61,18 @@ export function injectDataConnectQuery<Data, Variables>(
6161 Partial < QueryResult < Data , Variables > > | undefined
6262 > ( undefined ) ;
6363 const finalInjector = injector || inject ( EnvironmentInjector ) ;
64- const varsSignal = computed ( ( ) =>
64+ const optionsSignal = computed ( ( ) =>
6565 typeof queryRefOrOptionsFn === "function"
66- ? queryRefOrOptionsFn ( ) . queryFn ( ) . variables
67- : queryRefOrOptionsFn . variables ,
66+ ? queryRefOrOptionsFn ( )
67+ : undefined ,
6868 ) ;
6969 const queryRefSignal = computed ( ( ) =>
7070 typeof queryRefOrOptionsFn === "function"
7171 ? queryRefOrOptionsFn ( ) . queryFn ( )
7272 : queryRefOrOptionsFn ,
7373 ) ;
74- const optionsSignal = computed ( ( ) =>
75- typeof queryRefOrOptionsFn === "function"
76- ? queryRefOrOptionsFn ( )
77- : undefined ,
74+ const varsSignal = computed ( ( ) =>
75+ queryRefSignal ( ) . variables ,
7876 ) ;
7977
8078 async function queryFn ( ) {
You can’t perform that action at this time.
0 commit comments