TanStackT
TanStack3y ago
3 replies
awake-maroon

Solid-query - query.isPending causing Type Error

I am getting the error "Cannot read properties of undefined (reading 'when')" on the
switch branch for when={query.isPending} on the page load. On page refresh it resolves the content. Commenting out the branch removes the error. I can't find relevant issues on GitHub for this. Can anyone advise how to deal with the type issue on that?
using solid-query v 5.15.0
Was this page helpful?