For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/react/Functions/markFirstScreenSyncReady.md.
  • 简体中文
  • 函数: markFirstScreenSyncReady()

    markFirstScreenSyncReady(): void

    当 firstScreenSyncTiming 为 'manual' 时,将首屏标记为可同步。

    在调用此方法之前,主线程会一直持有 UI 控制权,因此向后台线程移交(用于 hydration)的时机完全由用户控制。它可以在两个线程中调用(后台线程的调用会被转发到主线程),仅在 firstScreenSyncTiming 为 'manual' 时生效,且首次调用之后再次调用不会产生任何效果。

    返回

    void

    示例

    import { markFirstScreenSyncReady } from "@lynx-js/react"
    
    markFirstScreenSyncReady();
    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。