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
I was using sanity-blocks-vue-component but I thought to use SanityContent component from this module and my code didn't work with it although it should be functionally equivalent.
The issue I'm having is that it doesn't pass any of Sanity props. For example, here's how I do marks and types using sanity-blocks-vue-component:
With sanity-blocks-vue-component, I was able to access internalLink sanity props (like this props.mark.slug) and create a custom mark and also I was able to use _sanityProps from inside my CustomeAdComponent. But with this nuxt module, I can't access any props.
Can someone please tell me why the above code doesn't work with this module? Or an extremely simple example to implement something similar to the above code would be highly appreciated.
The text was updated successfully, but these errors were encountered:
I'm using v0.10.0 with nuxt 2. According to the docs, this nuxt module should:
I was using sanity-blocks-vue-component but I thought to use SanityContent component from this module and my code didn't work with it although it should be functionally equivalent.
The issue I'm having is that it doesn't pass any of Sanity props. For example, here's how I do marks and types using
sanity-blocks-vue-component
:With
sanity-blocks-vue-component
, I was able to accessinternalLink
sanity props (like thisprops.mark.slug
) and create a custom mark and also I was able to use_sanityProps
from inside myCustomeAdComponent
. But with this nuxt module, I can't access any props.Can someone please tell me why the above code doesn't work with this module? Or an extremely simple example to implement something similar to the above code would be highly appreciated.
The text was updated successfully, but these errors were encountered: