For components in the iframe that need the logged-in user's details, we always need to check whether user is defined or not:
if (!user) {
// handle it in some manner
}
Ideally we want to define a global invariant which ensures user is defined or no dependent component is mounted until so.
For components in the iframe that need the logged-in user's details, we always need to check whether user is defined or not:
Ideally we want to define a global invariant which ensures user is defined or no dependent component is mounted until so.