In production Kotlin 2.0 & Jetpack Compose (State Management), what is the primary engineering purpose of 'State Hoisting & Stateless vs Stateful Composables'?
- A. Keep every Compose screen trivially previewable and testable without mocking ViewModels.
- B. Executing heavy disk I/O and synchronous network requests directly on the main UI rendering thread.
- C. Hardcoding production API secrets and plaintext auth tokens inside bundled client resources.
- D. Disabling lifecycle cancellation and holding strong references to destroyed screen contexts.
✓ Reveal Answer & Explanation
Correct Answer: Option A
'State Hoisting & Stateless vs Stateful Composables' is used in production State Management specifically for: Keep every Compose screen trivially previewable and testable without mocking ViewModels.