Regular resources have hasValue to narrow undefined out of the value
const value = someResource.value(); // string | undefined
if (someResource.hasValue()) {
const valueNarrowed = someResource.value(); // string
}
withResource and the Mutations (httpMutation and rxMutation) both have a hasValue(), but upon doing some work recently, we noticed that the type narrowing does not work.
Until fix: use usual narrowing strategies that invoke the signal before trying to conditionally use them.