1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-15 17:50:48 +02:00
unleash.unleash/frontend/src
Fredrik Strand Oseberg 1f6db91fde
Fix/redirect woes (#2899)
This PR fixes two problems: 

(1) The initial redirect put us into an infinite loop when redirecting,
because trying to go back to the root would always trigger the initial
redirect component. Throwing you back to project screen.

(2) Using UI config in the useLastViewedProject to get the basePath
introduced a race condition where you needed data from the uiConfig in
order to fetch the correct key from local storage. The fix here was to
use the basePath coded into the HTML file, so we can synchronously
retrieve the correct key at startup.

Co-authored-by: kwasniew <kwasniewski.mateusz@gmail.com>
2023-01-17 13:33:52 +01:00
..
__mocks__
assets Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
component Fix/redirect woes (#2899) 2023-01-17 13:33:52 +01:00
constants Feat clone environment modal (#2245) 2022-10-28 09:15:46 +01:00
contexts Custom event tracking (#2151) 2022-10-10 14:06:44 +02:00
hooks Fix/redirect woes (#2899) 2023-01-17 13:33:52 +01:00
interfaces Refactor/lazy load (#2842) 2023-01-12 11:34:45 +01:00
openapi feat: export ui api integration (#2888) 2023-01-12 16:09:13 +01:00
themes fix: small breadcrumb adjustments (#2893) 2023-01-16 13:09:38 +01:00
types chore(deps): update dependency prettier to v2.8.1 (#2509) 2022-12-27 10:45:43 +01:00
utils refactor: styles batch 3 (#2821) 2023-01-11 17:44:21 +01:00
index.tsx feat: message banner (#2726) 2022-12-22 15:16:51 +00:00
setupTests.ts
vite-env.d.ts