4 ms·
Passing Dates to a React component caused re-rendering issues in some of my applications due to Date being an object. I had to resort to numbers (Unix time) to
by nikeee 2y ago
Passing Dates to a React component caused re-rendering issues in some of my applications due to Date being an object.
I had to resort to numbers (Unix time) to not have to add memoization everywhere. Seems like this will continue with Temporal. Or React-Compiler will solve this.