shuffled investor data randomly so that every time a user refreshes the investor page, the order of investors should be different
Linear Task: ENG-2105
Differential D5482
[landing] shuffled investor data ginsu on Oct 25 2022, 1:26 PM. Authored by Tags None Referenced Files
Details
shuffled investor data randomly so that every time a user refreshes the investor page, the order of investors should be different Linear Task: ENG-2105 Please watch the before and after video demos to see the changes I made: Before: After:
Diff Detail
Event TimelineComment Actions Huh, I'm a little confused. The video clearly shows that things are working as expected, but I assumed shuffledInvestorsData is defined and instantiated once and would remain the same indefinitely.. but looks like that assumption is incorrect Comment Actions It's evaluated once per run of the JS code. The bundle will say _shuffle(investorsData), and the JS runtime that evaluates that bundle will generate a different shuffle every time it evaluates it |