Skip to content

Multiple suspense useTracker slow loading #454

@Dani055

Description

@Dani055

Using more than a few suspense trackers that have the same suspense results in really slow loading times. This is quite a pain, as it is currently a roadblock in our way to transition to Meteor V3.

We have quite a lot of isomorphic code we need to make async and the suspense trackers are documented in the official Meteor migration guide as a way to handle that. Guide

The problem is that using more than just a few of them results in really slow loading times. I have not yet been able to pin the exact amount - on larger production apps with more React components it seems to be around 4-5, but on a fresh Meteor app (reproduction repo below) more than 10 start being a problem.

Reproduction repo

Reproduction is quite simple.

  • meteor npm i
  • Start the meteor app with npm run start or npm run start-single-database if there's a MongoDB instance running on the machine.
  • The component that has the trackers in it is the one under the / route
  • alternatively, watch the demo video I uploaded in the repo

Would really appreciate help with this issue, or ideas for contributing to resolve it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions