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
I have a use case when I have a page concerning some object, say a "Book". I use getInitialProps to load the book. On the book page I also have tabs to display some hasMany relationships like "Authors". The "Authors" tab is a child component of the "Book" page component and ideally I would like to only load authors once the tab is clicked and this child component is mounted.
Are there any plans to allow getInitialProps in child components? Is there a workaround to this issue I am not seeing?
The text was updated successfully, but these errors were encountered:
I have a use case when I have a page concerning some object, say a "Book". I use
getInitialProps
to load the book. On the book page I also have tabs to display somehasMany
relationships like "Authors". The "Authors" tab is a child component of the "Book" page component and ideally I would like to only load authors once the tab is clicked and this child component is mounted.Are there any plans to allow
getInitialProps
in child components? Is there a workaround to this issue I am not seeing?The text was updated successfully, but these errors were encountered: