fix(p2): Calendar view toggle - force Suspense remount with key prop
This commit is contained in:
@@ -394,7 +394,7 @@ export default function CalendarPage() {
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<Suspense
|
<Suspense key={view}
|
||||||
fallback={
|
fallback={
|
||||||
<div className="flex h-[600px] items-center justify-center rounded-lg border bg-muted/30">
|
<div className="flex h-[600px] items-center justify-center rounded-lg border bg-muted/30">
|
||||||
<div className="animate-pulse text-sm text-muted-foreground">Loading calendar...</div>
|
<div className="animate-pulse text-sm text-muted-foreground">Loading calendar...</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user