Dang. A day into refactoring a large #React app to use render props (in order to
allow re-use of application logic with a user-definable layout), I hit the
problem where render props return components with render props, and hooks don't
get called all the time.
2 replies
I know why it happens (conditionally rendered subcomponents appear in the same
tree), but I now need to figure out the best way to work around that.
"Rendered more hooks than during the previous render." is the error btw.