Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

graphql/apollo-angular/docs/data/queries#1873

giscus[bot]bot started this conversation inDocs Discussions
Discussion options

graphql/apollo-angular/docs/data/queries

Fetch data with the Apollo service

https://the-guild.dev/graphql/apollo-angular/docs/data/queries

You must be logged in to vote

Replies: 4 comments

Comment options

The explanation onuseInitialLoading is unclear to me.

the first result is emitted with the response from the ApolloLink execution chain.

I don't know what this means.

In order to correct it

To correct what?

You must be logged in to vote
0 replies
Comment options

Section "Inspecting Error States" could use an example.

You must be logged in to vote
0 replies
Comment options

The example's link does not work:https://graphql-voter-app.herokuapp.com/

You must be logged in to vote
0 replies
Comment options

I have a scenario that I can't figure out. I'm using a watchQuery with a search param, and if I type slow enough to trigger an intermediate call, a race condition manifests like follows:
assume the query string is "tenant"
first query runs when the search string is "ten"
second query runs when the search string is "tenant"

second query return 3 items, which get displayed correctly
first query returns 12 items, which get displayed and overwrite the previous (correct) result.

The easiest fix that I can think of is to cancel the http request for the first query, if it is in a pending state when the second query gets triggered. Any idea I can do that from the QueryRef, or by using some options on the query?

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
3 participants
@flashcrow2000@aleixsuau@SimonCockx

[8]ページ先頭

©2009-2025 Movatter.jp