Skip to content
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

useQuery is not returning data #82

Open
dvnrsn opened this issue May 24, 2024 · 0 comments
Open

useQuery is not returning data #82

dvnrsn opened this issue May 24, 2024 · 0 comments

Comments

@dvnrsn
Copy link

dvnrsn commented May 24, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant