- Return errors from fetch functions instead of setting state directly - Clear error state before starting a new fetch - Combine errors when both upcoming and past trades fail to load - Handle fetch errors in handleAction as well |
||
|---|---|---|
| .. | ||
| admin | ||
| components | ||
| exchange | ||
| generated | ||
| hooks | ||
| invites | ||
| login | ||
| profile | ||
| signup | ||
| styles | ||
| trades | ||
| utils | ||
| api.ts | ||
| auth-context.tsx | ||
| config.ts | ||
| layout.tsx | ||
| page.tsx | ||