In CurrentClassScreen.tsx where class is still not loaded if passes null to ClassView and ClassView has to handle null case but this should not handle ideally we should show a shimmer(placeholder) when CurrentClassScreen is fetching class data from server if there is a class then pass it to ClassView else show there is not class at all.
In CurrentClassScreen.tsx where class is still not loaded if passes
null
toClassView
andClassView
has to handle null case but this should not handle ideally we should show a shimmer(placeholder) whenCurrentClassScreen
is fetching class data from server if there is a class then pass it toClassView
else show there is not class at all.