Skip to content

Data loaders inside nested layouts with params causes undefined data error when existing page in prod and with HRM. #567

Open
@minht11

Description

@minht11

For a while I noticed errors in production environment, only on pages which had dynamic page params. Not all of the users had the errors and it was very hard to reliably reproduce it, likely timing related. Except the same error could be observed under specific circumstances with HMR.

Basic loader fails instantly on the same page or on the next navigation.

Screen.Recording.2025-01-13.at.00.01.51.mov

Colada loader fails on next navigation. Feels like previous page data is being cleared too early, while component is still mounted.

Screen.Recording.2025-01-13.at.00.04.12.mov

Reproduction

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚡️ enhancementimprovement over an existing feature

    Projects

    • Status

      📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions