Closed ssomnoremac closed 6 years ago
On render is good enough
Or u could try to improve this doing a setState on componentWillReceiveProps
prepareVariables was for input, on Modern you should be explicit for this computed prepared variables
Oh yeah, it was for input, I remember now. Yeah, I will try it for a while in render and see how performance is. It just didn't seem ideal to load more on scroll and have it re-sort every time but perhaps it really isn't an issue.
@sibelius thanks for getting back about it!
I can't resolve how to use RelayModern for RN
SectionList
. In other words, where do I prepare data like thisto look like this:
Surely not in the render function. That doesn't seem performant. Isn't this what
prepareVariables
used to allow for? Where is that functionality in RelayModern?