Skip to content

Is the result of useQuery typed? #1165

Answered by dohomi
dohomi asked this question in Q&A
Oct 13, 2022 · 2 comments · 7 replies
Discussion options

You must be logged in to vote

I receive auto completion but the query is only

Proxy {$state: {…}, __typename: Symbol(gqty-proxy), authProvider: Symbol(gqty-proxy), authProviderRequest: Symbol(gqty-proxy), authProviderRequests: Symbol(gqty-proxy), …}

inside of the queryFetcher of index.ts I add a console log but that is never fetched. Also the autogenerated file index.ts seems to require @gqty/react which is not mentioned in the docs yet.

Where is the place to add authentication tokens for the backend api? I thought I'd place it in queryFetcher but so far that function is not called.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@PabloSzx
Comment options

@dohomi
Comment options

@dohomi
Comment options

@dohomi
Comment options

@dohomi
Comment options

Answer selected by PabloSzx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1164 on October 13, 2022 03:30.