title: Store.addNotification function causing application to crash
body: <pre><code>import { Store } from &quot;react-notifications-component&quot;;
  
  class AlertView extends PureComponent {
    render() {
      const { isOpen, title, msg, type, hideAlert } = this.props;
      if (type === &quot;success&quot;) {
        Store.addNotification({
          title: title,
          message: msg,
          type: &quot;success&quot;,
          container: &quot;top-right&quot;,
          dismiss: {
            duration: 3000
          },
        });
        return null;
      }
  ...
  </code></pre>
  <p>The above snippet of code is causing the react page to become unresponsive (the page goes white and requires reload). There are no error messages logged in the console, but the page is unresponsive.</p>
  <p>I am running react version 18.1 with the react-notifications-component version 4.0.1. This functionality was working on prior versions of react (16.11), with older versions of react-notifications-component (3.0.4), but after updating my application to use the latest versions of each, the application is now behaving strangely.</p>
  <p>I believe there is some error with the 'Store.addNotification', because when I comment this segment of code out, the application behaves properly. But I have not found any reported issues online.</p>