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

loadQuery's data is sometimes null #84

Open
dvnrsn opened this issue Jun 4, 2024 · 0 comments
Open

loadQuery's data is sometimes null #84

dvnrsn opened this issue Jun 4, 2024 · 0 comments

Comments

@dvnrsn
Copy link

dvnrsn commented Jun 4, 2024

const initial = await context.sanity.loadQuery<Page>(
  PAGE_QUERY,
);

console.log(initial)
// { data: null }

It's not obvious to me why this value is null in the remix loader. Sometimes even in the same moment it is switching. I know it works because the UI looks good but I noticed this because I started seeing server errors.

CleanShot 2024-06-04 at 12 32 21

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