James Mikrut
c6a7ad2817
perf: optimizes admin ui loading by using react cache to memoize req / auth ( #8315 )
...
Uses React `cache` to memoize a lot of the work that the Payload Admin
UI had to perform in parallel, in multiple places.
Specifically, we were running `auth` in three places:
1. `not-found.tsx` - for some reason this renders even if not used
2. `initPage.ts`
3. `RootLayout`
Now, a lot of expensive calculations only happen once and are memoized
per-request. 🎉
2024-09-19 21:58:34 +00:00
..
2024-09-16 11:50:44 -04:00
2024-09-17 10:40:54 -04:00
2024-09-16 16:15:29 -04:00
2024-09-17 10:40:54 -04:00
2024-09-16 16:15:29 -04:00
2024-09-17 12:57:00 -04:00
2024-09-16 11:50:44 -04:00
2024-09-16 11:50:44 -04:00
2024-09-13 17:48:53 +00:00
2024-09-13 17:48:53 +00:00
2024-09-17 14:04:48 -04:00
2024-09-16 11:50:44 -04:00
2024-09-16 11:50:44 -04:00
2024-09-16 11:50:44 -04:00
2024-09-19 21:58:34 +00:00
2024-09-19 17:07:02 -04:00
2024-09-16 11:50:44 -04:00
2024-09-17 16:29:38 +00:00
2024-09-18 00:28:52 +00:00
2024-09-16 11:50:44 -04:00
2024-09-17 16:29:38 +00:00
2024-09-16 11:50:44 -04:00
2024-09-16 11:50:44 -04:00
2024-09-13 17:48:53 +00:00
2024-09-17 17:25:57 +00:00
2024-09-17 14:04:48 -04:00
2024-09-17 14:04:48 -04:00
2024-09-18 00:00:00 +00:00
2024-09-16 11:50:44 -04:00
2024-09-16 11:50:44 -04:00
2024-09-16 11:50:44 -04:00
2024-09-16 11:50:44 -04:00
2024-09-19 08:51:03 -06:00
2024-09-17 14:04:48 -04:00
2024-09-19 14:13:14 -04:00