Repository navigation
Commit 879aaad
Jacek
fix(nextjs): skip invalidateCacheAction on Next.js 16 to unblock setActive
On Next.js 16.2.0 with cacheComponents, the invalidateCacheAction server
action (which calls cookies() from next/headers) hangs indefinitely,
blocking setActive() from completing after sign-in. The sign-in API
returns complete but the session is never set because setActive is
stuck awaiting the server action.
Skip the server action on Next.js 16 and rely on router.refresh() in
onAfterSetActive for cache invalidation instead.1 parent e9dfc01 commit 879aaad
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
| |||
0 commit comments