Should ifLet(then:else:)
call else block for initial nil
?
#492
-
The ifLet(then:else:)
If it starts as I would imagine that in the vast majority of cases these states will always start as Having the This could easily be fixed by adding a If you agree, I'll create a quick PR for this change. PS: I created this here instead of an Issue as not sure if it's strictly a bug. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I had a deeper look at this, and it turns out that suppressing the |
Beta Was this translation helpful? Give feedback.
I had a deeper look at this, and it turns out that suppressing the
else
block for an initialnil
is probably not such a good idea after all. For one, it would remove the ability to do this kind of thing. Here the initialnil
is used to show a loading spinner in a navigate then load scenario.