You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.
activeProgram is coming from local state (cache). Is there a way to use local state variables directly in query ? How to pass local state to query variable ?
The text was updated successfully, but these errors were encountered:
For better or worse, at present, I believe that the simplest way to pass a local variable is simply to compose two Query components -- the remote component inside of the local component.
Something like this, where the first query matches the structure of your local cache:
The good news is that, according to this slide from a presentation given at the beginning of the month, an @export directive will soon be available to solve the same problem!
EDIT: See this PR in the Apollo Client repo for the release of the features from the aforementioned slide.
I have simple Query with variable:
with query:
activeProgram
is coming from local state (cache). Is there a way to use local state variables directly in query ? How to pass local state to query variable ?The text was updated successfully, but these errors were encountered: