Skip to content

[TRI-573] Move job loading to the jobs loader #155

@ericallam

Description

@ericallam

By fetching jobs too high up in the route hierarchy, navigating to the job list page does not pick up on new jobs created since the last time the jobs were fetched. This is because of how remix works and so we need to move all fetching logic to the correct places

Currently, jobs are fetched in the ProjectPresenter and should be moved to their own presenter (JobListPresenter). The route that currently fetches the jobs is here:

https://github.com/triggerdotdev/trigger.dev/blob/main/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam/route.tsx

But they should be moved to here:

https://github.com/triggerdotdev/trigger.dev/blob/main/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam._index/route.tsx

From SyncLinear.com | TRI-573

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions