Skip to content

Route plugin: Cannot access path in action #189

@coffee-cup

Description

@coffee-cup

In an action, route is a universe watcher. This means that to access any value on it (such as path), I need to watch. e.g.

const myAction = () => {
  const url = watch(route.path);
}

It does not make sense to watch values in actions. I should be able to get the path without watching.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🕷Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions