docs: Comprehensive documentation improvements#14
Merged
takeshishimada merged 11 commits intomainfrom Oct 30, 2025
Merged
Conversation
Add warning block and inline comments to clarify that @unchecked Sendable bypasses Swift's concurrency checks and requires manual thread-safety guarantees. Explain that this is safe in Flow due to MainActor isolation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Enhance step titles to briefly introduce key concepts (State, Actions, ActionHandler, Store) and add a guidance note directing readers to CoreConcepts for detailed explanations. This maintains the quick-start focus while providing better context. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Add a reference table summarizing the five core elements with their purposes and key APIs. This provides readers with a quick overview before diving into detailed sections. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Add detailed explanations and practical examples for: - Store: Key responsibilities, @State lifecycle, sending actions - Feature: Benefits (cohesion, reusability, type safety) with complete implementation - ActionHandler: How it works with sync/async examples This balances the document sections and provides better guidance for developers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Replace complex parent-child navigation example with a simpler login validation example. The new example better demonstrates: - Basic ActionResult definition - .just() for immediate results - .run with result returns - Result type handling Moves advanced parent-child patterns to PracticalGuide reference. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Enhance error handling across multiple patterns: - Task Cancellation: Add cancelInFlight explanation and .catch example - Parallel Processing: Add .catch for handling failed concurrent operations - Parent-Child Communication: Add .failure case handling These additions demonstrate proper error handling in real-world scenarios. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Add section explaining how to chain multiple middleware with .use() and describe the execution order (beforeAction: top-down, afterAction: bottom-up, onError: top-down). Includes practical example combining logging, analytics, and error reporting. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Add detailed explanation comparing .just() with .none and listing common use cases (validation, state calculations, cache hits). This clarifies when to use .just() for synchronous results vs .run for async results. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Replace four separate code examples with a concise reference table and two focused examples. Add note clarifying that priority affects scheduling but doesn't guarantee order. Makes the section more scannable while preserving essential information. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Add comprehensive Overview section with: - Design philosophy (view-local, unidirectional, type-safe, concurrency) - Quick counter example for 30-second understanding - Architecture diagram reference - Comparison with global store architectures This helps visitors quickly assess if Flow fits their needs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Add comprehensive explanation of .cancellable(id:cancelInFlight:) with: - Parameter descriptions (id for identification, cancelInFlight behavior) - Task ID naming conventions - Scoping information This clarifies task cancellation mechanics for developers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR provides comprehensive improvements to Flow's DocC documentation based on a detailed three-round review of all documentation files. The changes enhance clarity, add missing explanations, and improve the learning experience for both beginners and advanced users.
Changes by Priority
High Priority (Critical Issues)
@unchecked Sendablein MiddlewareMedium Priority (Important Improvements)
.just()explanation comparing with.none.run/.noneexplanations (confirmed sufficient)Low Priority (Polish)
.cancellable()explanation with parameter descriptionsStatistics
Key Improvements
1. Beginner-Friendly Enhancements
2. Concept Explanations
.none,.run,.just().cancellable()parameter explanations3. Practical Examples
.catch4. Safety Improvements
@unchecked SendablewarningsTesting
Related Issues
Addresses documentation gaps identified in comprehensive DocC review.
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com