Just by using toRelative pipe the performance tanks
When using the toRelative pipe (OR JUST BY IMPORTING IT) a setinterfal function is created per component that has it imported.
On some applications this TANKS PERFORMANCE in a massive way
This is just with an user scrolling through a page with a list of "articles". The more the user loads the worse performance gets.
To workarround this I just imported regular luxon and thats it. But this requires fixing
This could definitely be more intelligent (only check every second if < 1 minute, every minute if < 1 hour, etc.). We could also add an option to disable automatic updates.
(OR JUST BY IMPORTING IT)
If you have a reproduction of this, please share.
You can view it here https://wafrn-git-fork-fireisgood-increase-po-219fbe-gabbomans-projects.vercel.app/dashboard/exploreLocal code: https://wafrn-git-fork-fireisgood-increase-po-219fbe-gabbomans-projects.vercel.app/dashboard/exploreLocal
the code at that point, that pr in particular, in the post-ribbon component imports the library and tried to get the value directly from the pipe.
Every post fragment displayed the time and since it is its own component, it would have its own instance of the library. Each "page" is a block of 20 threads, wich.... as you can imagine, it blows up quite quick