Skip to content

6x reduced CPU cause lazy routes failing during loading or navigation #1534

Closed
@maksymskuibida

Description

@maksymskuibida

Describe the bug

I am facing an issue on admin panel I am developing now. Sometimes, I cannot find exact steps to reproduce it just returns nothing in Outlet. I checked all my code tree and there is no chance it is bug in my code. Then I reload the page and then I am facing the next issue. beforeLoad of my $lang route is called before __root.tsx beforeLoad what causes other bugs

Your Example Website or App

admin.7loc.com

Steps to Reproduce the Bug or Issue

If you want, you can

  1. register here,
  2. create profile in form
  3. Navigate between pages on phone or with efficiency slowed down x6 + mobile mode in devtools

Expected behavior

  1. When I am on some route, and there is some content, Outlet have to return it always
  2. __root.tsx beforeLoad should be called before other routes beforeLoad as well, as any parent beforeLoad should be called before beforeLoad of any children

Screenshots or Videos

No response

Platform

  • OS: It happens more often on phone or if I slow dows processor x6 in browser devtools
  • Browser: all
  • Version: 1.30.1—1.31.2

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions