ring-platform-baseline
Ring Platform Baseline
Summary
Server Components are default - 'use client' is exception. React Compiler v1.0.0 eliminates manual useMemo/useCallback. useActionState replaces useReducer for forms. Server Actions ('use server') replace API routes for mutations. Ring actions at app/_actions/ and features/*/services/. React.cache() wraps SSOT read helpers in firebase-service-manager.ts for server-side request deduplication (3-7x reduction in Firestore reads per request). React 19 use() unwraps Promises in client components — paired with for declarative loading. The use-firebase hook family (planned) wraps firebase/app + firebase/firestore + firebase/auth for client-side React 19 + Firebase integration; use-fcm.ts is the established reference pattern. Tunnel (lib/tunnel) is the canonical real-time transport — Firebase RTDB is NOT used in Ring Platform.