Closed Datayama38 closed 3 months ago
The updates introduce a Suspense
component in the IncentiveCampaignsPage
to manage loading states more efficiently. Additionally, the getLastPeriod
function in the useDashboard
hook was repositioned above the onLoadTerritory
function for improved readability and logical flow.
File Path | Change Summary |
---|---|
public/src/app/observatoire/campagnes-incitation/page.tsx |
Added Suspense component to wrap the Dashboard component, enhancing loading state management. |
public/src/hooks/useDashboard.ts |
Reordered getLastPeriod function above onLoadTerritory for better readability and logical flow. |
🐇✨ In the code, a change so bright, Suspense now wraps with loading might. Functions swapped to make it clear, Better flow, no need to fear. Dashboards load with graceful cheer, CodeRabbit's touch, improvements near. ✨🐇
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Refactor