Skip to content

Calling trigger on a LazyQuery always starts new request #1279

Answered by phryneas
kjg asked this question in Q&A
Discussion options

You must be logged in to vote

Huh, this is actually undocumented and... not even in the TS types?

To answer your question, the real signature of the trigger function is

function (arg: any, preferCacheValue = false) {

so you can decide if it should use the cache with the second argument.

We need to get this in the docs and types though. Thanks for pointing it out.

Replies: 6 comments 13 replies

Comment options

You must be logged in to vote
1 reply
@kjg
Comment options

Answer selected by kjg
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@akashshyamdev
Comment options

@markerikson
Comment options

@akashshyamdev
Comment options

@akashshyamdev
Comment options

@phryneas
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@phryneas
Comment options

@gabrielsanttana
Comment options

Comment options

You must be logged in to vote
4 replies
@bryanltobing
Comment options

@phryneas
Comment options

@bryanltobing
Comment options

@phryneas
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working docs
6 participants