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
Hi @Atinux thanks very much for responding my inquiry.
Completely understand, no need to sorry, I'll mostly forgot too after working on many other things..
prefetch is either a boolean or a function to determine if the query should be prefetched
So from my understanding if using function, it should return true / false value as well. Perhaps it's a duplicate / meant for the query variable function that require 'id' of the record.
Thanks very much for your great framework, loving it so far.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am referring to this line
https://github.com/nuxt/nuxt.js/blob/265d0e7aac3df9f83f323c4d2dba11434956fe9b/examples/vue-apollo/pages/car/_id.vue#L21
Based on https://apollo.vuejs.org/api/apollo-query.html#props
prefetch: If false, will skip prefetching during SSR
Could you please give more information of what the intention/meaning on the function (on line 21) above? why not having true/false value? similar like the one in
https://github.com/nuxt/nuxt.js/blob/265d0e7aac3df9f83f323c4d2dba11434956fe9b/examples/vue-apollo/pages/index.vue#L20
Many thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions