Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Wait until notification types are loaded #3537
While this might work, the problem is not solved in the place where it occurs. The race condition occurs in the
AlertNotification component, so it should also be solved there, because otherwise it will happen again when that component is rendered from a different component. There are (at least) two ways to solve it there:
a) pass the alert notification type to the
AlertNotification component as a prop, or
b) use the store in that component and wait for it to load, rendering a spinner in the mean time.