Infinite state update in useRecent
The current usage of useRecent
on UploadPage
and EntryPage
causes an infinite state update, browser using 100% CPU, plus a lot of warnings.
I identified two causes:
-
the setter of useStorage
anduseSortedStorage
do not allow to update with callback ((currentValue) -> newValue
) and therefore, effects calling the setter also need the current value in their dependency list. -
the url
,navigate
(and potentially other things) returned byuseRoute
are not memoed and change with every render
Edited by Markus Scheidgen