发布

  • fix(project-page): hold Outlet until store catches up with URL

    frostbyte_neo 发布于 2026-04-21 11:42:48 +00:00

    Children rendered with a stale activeProjectId for one frame between
    useProjectById resolving and the sync useEffect firing, which kicked off
    queries against the previous project. Gate the Outlet on
    activeProjectId === projectId. The gate sits after the error branch so
    a URL that 404s still renders NoData instead of spinning on the loader
    (we deliberately don't write on error, so activeProjectId wouldn't catch
    up to an invalid id otherwise).

    Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

    下载附件