-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to pass options to createPersistedQueryLink
#106
Conversation
Any updates on this? The flag |
This had been open for a while, but I seem to grow my knowledge about Apollo at the very same pace that several advanced features + fixes are being added to vue-apollo. I only discovered the flag |
if (typeof persisting === 'object' && persisting != null) { | ||
persistingOpts = persisting | ||
} | ||
if (persistingOpts.enabled) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the option persisting
has been set to true
the persisted query link will not be enabled. The documentation implies otherwise and this also breaks setups from previous versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh.. I'll create a PR in a few mins
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rationale:
When query persisting is ON, there might be a need in passing options to the
createPersistedQueryLink
constructor.No breaking changes.