You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Home component doesn't use asyncConnect. It works fine. MyComponent works only when clicking to /my-route through a link in Home.
When entering /my-route in any other way (address bar, hot reload etc.), the inner component, in this case the react-redux connected MyComponent, is rendered without the promise even firing.
MyComponent uses data fetched with asyncConnect, and the component crashes because props are null.
I'm exporting my component as follows:
And using it in router config like this:
Home component doesn't use asyncConnect. It works fine. MyComponent works only when clicking to /my-route through a link in Home.
When entering /my-route in any other way (address bar, hot reload etc.), the inner component, in this case the react-redux connected MyComponent, is rendered without the promise even firing.
MyComponent uses data fetched with asyncConnect, and the component crashes because props are null.
I'm not using SSR.
Library versions:
The text was updated successfully, but these errors were encountered: