Skip to content

Load task from url state #2

@NickLewanowicz

Description

@NickLewanowicz

Expected Behavior

When you load a url with /projects/:projectID/tasks/:taskId it should load the project list and the selected task in details view

Current Behavior

Regardless of taskId being in the URL the task details do not load

Possible Solution

We should be able to load primary state from url

Steps to Reproduce

  1. Navigate to project route
  2. Select a task (notice details are open and URL updates)
  3. Refresh page (notice that URL is the same but details are not open)

Context (Environment)

I will refresh the session while having a task selected and it isnt selected after

Detailed Description

On init of the projects route we need to set the selectedTask

Possible Implementation

Currently when we make a request for project information we get the primary information about tasks like title and description. We should just need to set up a constructor condition if the taskId param is there then we set that task as the selectedTask.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions