im_ninooo
Await for signal state?
I'll update and try again. I did change my loggedIn signal to be optional and defaulted to
undefined
meaning the session check hasn't run/finished and that worked but again, hooking solely on the resource's state would be cleaner 🙂49 replies
Await for signal state?
this is obviously not a big deal but I would like to show the correct information (or nothing at all).
I know this should be possible by hooking into the
checkingLogin
signal, but that will make my code unnecessarily more complex.49 replies
Await for signal state?
my issue is that when the state is
ready
and the resource is undefined
, I show a "No data available" fallback, but because that's also the initial resource state, that message is shown before the fetch begins (and then a "loading" message takes over).49 replies