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
3 Replies
like-gold•2y ago
Show a ts-playground?
extended-salmonOP•2y ago
extended-salmonOP•2y ago
I've recreated the issue in a non-SSR example, and it seems as if the query is not firing on page load, only firing on refresh.