mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
## TL;DR refactor workspace embedding: * using computed data * optimizing data fetching timing(constructor -> component mounted) * set loading initial values to `true` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Improved loading indicators and state handling for embedding settings, including a more accurate loading state for the embedding toggle. - **Bug Fixes** - The embedding toggle now safely handles unknown or loading states and is disabled while loading, preventing unintended interactions. - **Refactor** - Simplified pagination logic and optimized initial data fetching for a smoother user experience. <!-- end of auto-generated comment: release notes by coderabbit.ai -->