Open zhammer opened 5 years ago
I think that essentially what's happening here is:
loading
is set to true
showSubmitSong
is set to false SubmitSongPage
begins fade out, but is still being rendered and depends on selectedSong
having a value
SubmitSongPage
fadeout completesloading
is set to false
and selectedSong
is set to null
SubmitSongPage
is still being faded out, and is still rendering, it tries to use its song
prop, which is null
, and CRASHhonestly for now i think i'll just set a delay on setting selectedSong
to null
, but this points to a bigger issue (that i'm surprised hasn't happened before) with the FadeInFadeOut
i have a feeling that if the user is on the song submit form, and sunset happens, their page will crash as well
https://sentry.io/zach-hammer/morning-cd-web-client/issues/853170016