Skip to content

useQuery is not returning data #82

@dvnrsn

Description

@dvnrsn

I've followed the readme and migration fairly strictly. Documents are loading and the hover UI of Sanity is doing the trick. However, updating document data is showing no changes in the presentation window.

I noticed that useQuery doesn't ever seem to be running the provided queries. If I do not supply initial then there is no data available at all. I've been looking at https://github.com/sanity-io/sanity-template-remix-clean and am wondering if we need this

import { useLiveMode } from '@sanity/react-loader'

I did ensure VisualEditing is rendering (i.e., context.sanity.preview?.enabled == true)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions