Visual Editing with Sanity Nuxt module
According to the documentation, a createSanityDataAttribute helper function is available to manually map the content in a component to its source code. But when I use this code locally, it creates a server error "createSanityDataAttribute" is not a function. Is this function not safe to use wihout checking first if we are in preview mode?
When visual editing is enabled, this module exports a createSanityDataAttribute helper function which allows you to manually map content in a component to its source. It is globally available throughout your project (both within your server routes and your Vue app) via auto-imports.
When visual editing is enabled, this module exports a createSanityDataAttribute helper function which allows you to manually map content in a component to its source. It is globally available throughout your project (both within your server routes and your Vue app) via auto-imports.
