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
The problem is that if I click either the link or the button to go to /nesting/users/doe, the NestedUserPage::render is run before (and after) NestedUserPage::getInitialStateAsync.
In my own code, where it uses Array::map to render lists, this premature rendering produces Uncaught TypeError: Cannot read property 'map' of undefined and stops the site from working.
The un-nested /users/doe works fine, as UserPage::getInitialStateAsync is called before the first UserPage::render.
I've created a repo which shows the odd behaviour: https://github.com/chrisdew/react-quickstart
The problem is that if I click either the link or the button to go to
/nesting/users/doe
, theNestedUserPage::render
is run before (and after)NestedUserPage::getInitialStateAsync
.In my own code, where it uses Array::map to render lists, this premature rendering produces
Uncaught TypeError: Cannot read property 'map' of undefined
and stops the site from working.The un-nested
/users/doe
works fine, asUserPage::getInitialStateAsync
is called before the firstUserPage::render
.This may be a bug, or a problem with my understanding.
The text was updated successfully, but these errors were encountered: