Optimize client details with opaque tokens
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m20s

This commit is contained in:
Cauê Faleiros
2026-06-22 11:00:42 -03:00
parent 3c74fa7210
commit 0874238fc6
12 changed files with 548 additions and 43 deletions

View File

@@ -7,8 +7,7 @@ import { rangeForLastDays } from '../dateRanges';
const Layout = () => {
const location = useLocation();
const needsRawData = location.pathname.startsWith('/products') ||
(location.pathname.startsWith('/clients/') && location.pathname !== '/clients');
const needsRawData = location.pathname.startsWith('/products');
const [isSidebarCollapsed, setIsSidebarCollapsed] = useState(() => {
return localStorage.getItem('graph_sidebar_collapsed') === 'true';
});
@@ -46,7 +45,7 @@ const Layout = () => {
useEffect(() => {
if (!needsRawData) return;
// Product pages and client details still depend on raw orders until their API migration is complete.
// Product pages still depend on raw orders until their API migration is complete.
// eslint-disable-next-line react-hooks/set-state-in-effect
void loadData(true);
}, [loadData, needsRawData]);