Skip to content

Route plugin: Cannot access path in action #189

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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